github.com/spotify/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/src/pkg/syscall/ztypes_netbsd_amd64.go (about)

     1  // Created by cgo -godefs - DO NOT EDIT
     2  // cgo -godefs types_netbsd.go
     3  
     4  package syscall
     5  
     6  const (
     7  	sizeofPtr      = 0x8
     8  	sizeofShort    = 0x2
     9  	sizeofInt      = 0x4
    10  	sizeofLong     = 0x8
    11  	sizeofLongLong = 0x8
    12  )
    13  
    14  type (
    15  	_C_short     int16
    16  	_C_int       int32
    17  	_C_long      int64
    18  	_C_long_long int64
    19  )
    20  
    21  type Timespec struct {
    22  	Sec  int64
    23  	Nsec int64
    24  }
    25  
    26  type Timeval struct {
    27  	Sec       int64
    28  	Usec      int32
    29  	Pad_cgo_0 [4]byte
    30  }
    31  
    32  type Rusage struct {
    33  	Utime    Timeval
    34  	Stime    Timeval
    35  	Maxrss   int64
    36  	Ixrss    int64
    37  	Idrss    int64
    38  	Isrss    int64
    39  	Minflt   int64
    40  	Majflt   int64
    41  	Nswap    int64
    42  	Inblock  int64
    43  	Oublock  int64
    44  	Msgsnd   int64
    45  	Msgrcv   int64
    46  	Nsignals int64
    47  	Nvcsw    int64
    48  	Nivcsw   int64
    49  }
    50  
    51  type Rlimit struct {
    52  	Cur uint64
    53  	Max uint64
    54  }
    55  
    56  type _Gid_t uint32
    57  
    58  type Stat_t struct {
    59  	Dev           uint64
    60  	Mode          uint32
    61  	Pad_cgo_0     [4]byte
    62  	Ino           uint64
    63  	Nlink         uint32
    64  	Uid           uint32
    65  	Gid           uint32
    66  	Pad_cgo_1     [4]byte
    67  	Rdev          uint64
    68  	Atimespec     Timespec
    69  	Mtimespec     Timespec
    70  	Ctimespec     Timespec
    71  	Birthtimespec Timespec
    72  	Size          int64
    73  	Blocks        int64
    74  	Blksize       uint32
    75  	Flags         uint32
    76  	Gen           uint32
    77  	Spare         [2]uint32
    78  	Pad_cgo_2     [4]byte
    79  }
    80  
    81  type Statfs_t [0]byte
    82  
    83  type Flock_t struct {
    84  	Start  int64
    85  	Len    int64
    86  	Pid    int32
    87  	Type   int16
    88  	Whence int16
    89  }
    90  
    91  type Dirent struct {
    92  	Fileno    uint64
    93  	Reclen    uint16
    94  	Namlen    uint16
    95  	Type      uint8
    96  	Name      [512]int8
    97  	Pad_cgo_0 [3]byte
    98  }
    99  
   100  type Fsid struct {
   101  	X__fsid_val [2]int32
   102  }
   103  
   104  type RawSockaddrInet4 struct {
   105  	Len    uint8
   106  	Family uint8
   107  	Port   uint16
   108  	Addr   [4]byte /* in_addr */
   109  	Zero   [8]int8
   110  }
   111  
   112  type RawSockaddrInet6 struct {
   113  	Len      uint8
   114  	Family   uint8
   115  	Port     uint16
   116  	Flowinfo uint32
   117  	Addr     [16]byte /* in6_addr */
   118  	Scope_id uint32
   119  }
   120  
   121  type RawSockaddrUnix struct {
   122  	Len    uint8
   123  	Family uint8
   124  	Path   [104]int8
   125  }
   126  
   127  type RawSockaddrDatalink struct {
   128  	Len    uint8
   129  	Family uint8
   130  	Index  uint16
   131  	Type   uint8
   132  	Nlen   uint8
   133  	Alen   uint8
   134  	Slen   uint8
   135  	Data   [12]int8
   136  }
   137  
   138  type RawSockaddr struct {
   139  	Len    uint8
   140  	Family uint8
   141  	Data   [14]int8
   142  }
   143  
   144  type RawSockaddrAny struct {
   145  	Addr RawSockaddr
   146  	Pad  [92]int8
   147  }
   148  
   149  type _Socklen uint32
   150  
   151  type Linger struct {
   152  	Onoff  int32
   153  	Linger int32
   154  }
   155  
   156  type Iovec struct {
   157  	Base *byte
   158  	Len  uint64
   159  }
   160  
   161  type IPMreq struct {
   162  	Multiaddr [4]byte /* in_addr */
   163  	Interface [4]byte /* in_addr */
   164  }
   165  
   166  type IPv6Mreq struct {
   167  	Multiaddr [16]byte /* in6_addr */
   168  	Interface uint32
   169  }
   170  
   171  type Msghdr struct {
   172  	Name       *byte
   173  	Namelen    uint32
   174  	Pad_cgo_0  [4]byte
   175  	Iov        *Iovec
   176  	Iovlen     int32
   177  	Pad_cgo_1  [4]byte
   178  	Control    *byte
   179  	Controllen uint32
   180  	Flags      int32
   181  }
   182  
   183  type Cmsghdr struct {
   184  	Len   uint32
   185  	Level int32
   186  	Type  int32
   187  }
   188  
   189  type Inet6Pktinfo struct {
   190  	Addr    [16]byte /* in6_addr */
   191  	Ifindex uint32
   192  }
   193  
   194  type IPv6MTUInfo struct {
   195  	Addr RawSockaddrInet6
   196  	Mtu  uint32
   197  }
   198  
   199  type ICMPv6Filter struct {
   200  	Filt [8]uint32
   201  }
   202  
   203  const (
   204  	SizeofSockaddrInet4    = 0x10
   205  	SizeofSockaddrInet6    = 0x1c
   206  	SizeofSockaddrAny      = 0x6c
   207  	SizeofSockaddrUnix     = 0x6a
   208  	SizeofSockaddrDatalink = 0x14
   209  	SizeofLinger           = 0x8
   210  	SizeofIPMreq           = 0x8
   211  	SizeofIPv6Mreq         = 0x14
   212  	SizeofMsghdr           = 0x30
   213  	SizeofCmsghdr          = 0xc
   214  	SizeofInet6Pktinfo     = 0x14
   215  	SizeofIPv6MTUInfo      = 0x20
   216  	SizeofICMPv6Filter     = 0x20
   217  )
   218  
   219  const (
   220  	PTRACE_TRACEME = 0x0
   221  	PTRACE_CONT    = 0x7
   222  	PTRACE_KILL    = 0x8
   223  )
   224  
   225  type Kevent_t struct {
   226  	Ident     uint64
   227  	Filter    uint32
   228  	Flags     uint32
   229  	Fflags    uint32
   230  	Pad_cgo_0 [4]byte
   231  	Data      int64
   232  	Udata     int64
   233  }
   234  
   235  type FdSet struct {
   236  	Bits [8]uint32
   237  }
   238  
   239  const (
   240  	SizeofIfMsghdr         = 0x98
   241  	SizeofIfData           = 0x88
   242  	SizeofIfaMsghdr        = 0x18
   243  	SizeofIfAnnounceMsghdr = 0x18
   244  	SizeofRtMsghdr         = 0x78
   245  	SizeofRtMetrics        = 0x50
   246  )
   247  
   248  type IfMsghdr struct {
   249  	Msglen    uint16
   250  	Version   uint8
   251  	Type      uint8
   252  	Addrs     int32
   253  	Flags     int32
   254  	Index     uint16
   255  	Pad_cgo_0 [2]byte
   256  	Data      IfData
   257  }
   258  
   259  type IfData struct {
   260  	Type       uint8
   261  	Addrlen    uint8
   262  	Hdrlen     uint8
   263  	Pad_cgo_0  [1]byte
   264  	Link_state int32
   265  	Mtu        uint64
   266  	Metric     uint64
   267  	Baudrate   uint64
   268  	Ipackets   uint64
   269  	Ierrors    uint64
   270  	Opackets   uint64
   271  	Oerrors    uint64
   272  	Collisions uint64
   273  	Ibytes     uint64
   274  	Obytes     uint64
   275  	Imcasts    uint64
   276  	Omcasts    uint64
   277  	Iqdrops    uint64
   278  	Noproto    uint64
   279  	Lastchange Timespec
   280  }
   281  
   282  type IfaMsghdr struct {
   283  	Msglen    uint16
   284  	Version   uint8
   285  	Type      uint8
   286  	Addrs     int32
   287  	Flags     int32
   288  	Metric    int32
   289  	Index     uint16
   290  	Pad_cgo_0 [6]byte
   291  }
   292  
   293  type IfAnnounceMsghdr struct {
   294  	Msglen  uint16
   295  	Version uint8
   296  	Type    uint8
   297  	Index   uint16
   298  	Name    [16]int8
   299  	What    uint16
   300  }
   301  
   302  type RtMsghdr struct {
   303  	Msglen    uint16
   304  	Version   uint8
   305  	Type      uint8
   306  	Index     uint16
   307  	Pad_cgo_0 [2]byte
   308  	Flags     int32
   309  	Addrs     int32
   310  	Pid       int32
   311  	Seq       int32
   312  	Errno     int32
   313  	Use       int32
   314  	Inits     int32
   315  	Pad_cgo_1 [4]byte
   316  	Rmx       RtMetrics
   317  }
   318  
   319  type RtMetrics struct {
   320  	Locks    uint64
   321  	Mtu      uint64
   322  	Hopcount uint64
   323  	Recvpipe uint64
   324  	Sendpipe uint64
   325  	Ssthresh uint64
   326  	Rtt      uint64
   327  	Rttvar   uint64
   328  	Expire   int64
   329  	Pksent   int64
   330  }
   331  
   332  type Mclpool [0]byte
   333  
   334  const (
   335  	SizeofBpfVersion = 0x4
   336  	SizeofBpfStat    = 0x80
   337  	SizeofBpfProgram = 0x10
   338  	SizeofBpfInsn    = 0x8
   339  	SizeofBpfHdr     = 0x20
   340  )
   341  
   342  type BpfVersion struct {
   343  	Major uint16
   344  	Minor uint16
   345  }
   346  
   347  type BpfStat struct {
   348  	Recv    uint64
   349  	Drop    uint64
   350  	Capt    uint64
   351  	Padding [13]uint64
   352  }
   353  
   354  type BpfProgram struct {
   355  	Len       uint32
   356  	Pad_cgo_0 [4]byte
   357  	Insns     *BpfInsn
   358  }
   359  
   360  type BpfInsn struct {
   361  	Code uint16
   362  	Jt   uint8
   363  	Jf   uint8
   364  	K    uint32
   365  }
   366  
   367  type BpfHdr struct {
   368  	Tstamp    BpfTimeval
   369  	Caplen    uint32
   370  	Datalen   uint32
   371  	Hdrlen    uint16
   372  	Pad_cgo_0 [6]byte
   373  }
   374  
   375  type BpfTimeval struct {
   376  	Sec  int64
   377  	Usec int64
   378  }
   379  
   380  type Sysctlnode struct {
   381  	Flags           uint32
   382  	Num             int32
   383  	Name            [32]int8
   384  	Ver             uint32
   385  	X__rsvd         uint32
   386  	Un              [16]byte
   387  	X_sysctl_size   [8]byte
   388  	X_sysctl_func   [8]byte
   389  	X_sysctl_parent [8]byte
   390  	X_sysctl_desc   [8]byte
   391  }