ztypes_netbsd_amd64.mx raw

   1  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
   2  // cgo -godefs types_netbsd.go | go run mkpost.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  const (
 105  	pathMax = 0x400
 106  )
 107  
 108  type RawSockaddrInet4 struct {
 109  	Len    uint8
 110  	Family uint8
 111  	Port   uint16
 112  	Addr   [4]byte /* in_addr */
 113  	Zero   [8]int8
 114  }
 115  
 116  type RawSockaddrInet6 struct {
 117  	Len      uint8
 118  	Family   uint8
 119  	Port     uint16
 120  	Flowinfo uint32
 121  	Addr     [16]byte /* in6_addr */
 122  	Scope_id uint32
 123  }
 124  
 125  type RawSockaddrUnix struct {
 126  	Len    uint8
 127  	Family uint8
 128  	Path   [104]int8
 129  }
 130  
 131  type RawSockaddrDatalink struct {
 132  	Len    uint8
 133  	Family uint8
 134  	Index  uint16
 135  	Type   uint8
 136  	Nlen   uint8
 137  	Alen   uint8
 138  	Slen   uint8
 139  	Data   [12]int8
 140  }
 141  
 142  type RawSockaddr struct {
 143  	Len    uint8
 144  	Family uint8
 145  	Data   [14]int8
 146  }
 147  
 148  type RawSockaddrAny struct {
 149  	Addr RawSockaddr
 150  	Pad  [92]int8
 151  }
 152  
 153  type _Socklen uint32
 154  
 155  type Linger struct {
 156  	Onoff  int32
 157  	Linger int32
 158  }
 159  
 160  type Iovec struct {
 161  	Base *byte
 162  	Len  uint64
 163  }
 164  
 165  type IPMreq struct {
 166  	Multiaddr [4]byte /* in_addr */
 167  	Interface [4]byte /* in_addr */
 168  }
 169  
 170  type IPv6Mreq struct {
 171  	Multiaddr [16]byte /* in6_addr */
 172  	Interface uint32
 173  }
 174  
 175  type Msghdr struct {
 176  	Name       *byte
 177  	Namelen    uint32
 178  	Pad_cgo_0  [4]byte
 179  	Iov        *Iovec
 180  	Iovlen     int32
 181  	Pad_cgo_1  [4]byte
 182  	Control    *byte
 183  	Controllen uint32
 184  	Flags      int32
 185  }
 186  
 187  type Cmsghdr struct {
 188  	Len   uint32
 189  	Level int32
 190  	Type  int32
 191  }
 192  
 193  type Inet6Pktinfo struct {
 194  	Addr    [16]byte /* in6_addr */
 195  	Ifindex uint32
 196  }
 197  
 198  type IPv6MTUInfo struct {
 199  	Addr RawSockaddrInet6
 200  	Mtu  uint32
 201  }
 202  
 203  type ICMPv6Filter struct {
 204  	Filt [8]uint32
 205  }
 206  
 207  const (
 208  	SizeofSockaddrInet4    = 0x10
 209  	SizeofSockaddrInet6    = 0x1c
 210  	SizeofSockaddrAny      = 0x6c
 211  	SizeofSockaddrUnix     = 0x6a
 212  	SizeofSockaddrDatalink = 0x14
 213  	SizeofLinger           = 0x8
 214  	SizeofIPMreq           = 0x8
 215  	SizeofIPv6Mreq         = 0x14
 216  	SizeofMsghdr           = 0x30
 217  	SizeofCmsghdr          = 0xc
 218  	SizeofInet6Pktinfo     = 0x14
 219  	SizeofIPv6MTUInfo      = 0x20
 220  	SizeofICMPv6Filter     = 0x20
 221  )
 222  
 223  const (
 224  	PTRACE_TRACEME = 0x0
 225  	PTRACE_CONT    = 0x7
 226  	PTRACE_KILL    = 0x8
 227  )
 228  
 229  type Kevent_t struct {
 230  	Ident     uint64
 231  	Filter    uint32
 232  	Flags     uint32
 233  	Fflags    uint32
 234  	Pad_cgo_0 [4]byte
 235  	Data      int64
 236  	Udata     int64
 237  }
 238  
 239  type FdSet struct {
 240  	Bits [8]uint32
 241  }
 242  
 243  const (
 244  	SizeofIfMsghdr         = 0x98
 245  	SizeofIfData           = 0x88
 246  	SizeofIfaMsghdr        = 0x18
 247  	SizeofIfAnnounceMsghdr = 0x18
 248  	SizeofRtMsghdr         = 0x78
 249  	SizeofRtMetrics        = 0x50
 250  )
 251  
 252  type IfMsghdr struct {
 253  	Msglen    uint16
 254  	Version   uint8
 255  	Type      uint8
 256  	Addrs     int32
 257  	Flags     int32
 258  	Index     uint16
 259  	Pad_cgo_0 [2]byte
 260  	Data      IfData
 261  }
 262  
 263  type IfData struct {
 264  	Type       uint8
 265  	Addrlen    uint8
 266  	Hdrlen     uint8
 267  	Pad_cgo_0  [1]byte
 268  	Link_state int32
 269  	Mtu        uint64
 270  	Metric     uint64
 271  	Baudrate   uint64
 272  	Ipackets   uint64
 273  	Ierrors    uint64
 274  	Opackets   uint64
 275  	Oerrors    uint64
 276  	Collisions uint64
 277  	Ibytes     uint64
 278  	Obytes     uint64
 279  	Imcasts    uint64
 280  	Omcasts    uint64
 281  	Iqdrops    uint64
 282  	Noproto    uint64
 283  	Lastchange Timespec
 284  }
 285  
 286  type IfaMsghdr struct {
 287  	Msglen    uint16
 288  	Version   uint8
 289  	Type      uint8
 290  	Addrs     int32
 291  	Flags     int32
 292  	Metric    int32
 293  	Index     uint16
 294  	Pad_cgo_0 [6]byte
 295  }
 296  
 297  type IfAnnounceMsghdr struct {
 298  	Msglen  uint16
 299  	Version uint8
 300  	Type    uint8
 301  	Index   uint16
 302  	Name    [16]int8
 303  	What    uint16
 304  }
 305  
 306  type RtMsghdr struct {
 307  	Msglen    uint16
 308  	Version   uint8
 309  	Type      uint8
 310  	Index     uint16
 311  	Pad_cgo_0 [2]byte
 312  	Flags     int32
 313  	Addrs     int32
 314  	Pid       int32
 315  	Seq       int32
 316  	Errno     int32
 317  	Use       int32
 318  	Inits     int32
 319  	Pad_cgo_1 [4]byte
 320  	Rmx       RtMetrics
 321  }
 322  
 323  type RtMetrics struct {
 324  	Locks    uint64
 325  	Mtu      uint64
 326  	Hopcount uint64
 327  	Recvpipe uint64
 328  	Sendpipe uint64
 329  	Ssthresh uint64
 330  	Rtt      uint64
 331  	Rttvar   uint64
 332  	Expire   int64
 333  	Pksent   int64
 334  }
 335  
 336  type Mclpool [0]byte
 337  
 338  const (
 339  	SizeofBpfVersion = 0x4
 340  	SizeofBpfStat    = 0x80
 341  	SizeofBpfProgram = 0x10
 342  	SizeofBpfInsn    = 0x8
 343  	SizeofBpfHdr     = 0x20
 344  )
 345  
 346  type BpfVersion struct {
 347  	Major uint16
 348  	Minor uint16
 349  }
 350  
 351  type BpfStat struct {
 352  	Recv    uint64
 353  	Drop    uint64
 354  	Capt    uint64
 355  	Padding [13]uint64
 356  }
 357  
 358  type BpfProgram struct {
 359  	Len       uint32
 360  	Pad_cgo_0 [4]byte
 361  	Insns     *BpfInsn
 362  }
 363  
 364  type BpfInsn struct {
 365  	Code uint16
 366  	Jt   uint8
 367  	Jf   uint8
 368  	K    uint32
 369  }
 370  
 371  type BpfHdr struct {
 372  	Tstamp    BpfTimeval
 373  	Caplen    uint32
 374  	Datalen   uint32
 375  	Hdrlen    uint16
 376  	Pad_cgo_0 [6]byte
 377  }
 378  
 379  type BpfTimeval struct {
 380  	Sec  int64
 381  	Usec int64
 382  }
 383  
 384  const (
 385  	_AT_FDCWD = -0x64
 386  )
 387  
 388  type Termios struct {
 389  	Iflag  uint32
 390  	Oflag  uint32
 391  	Cflag  uint32
 392  	Lflag  uint32
 393  	Cc     [20]uint8
 394  	Ispeed int32
 395  	Ospeed int32
 396  }
 397  
 398  type Sysctlnode struct {
 399  	Flags           uint32
 400  	Num             int32
 401  	Name            [32]int8
 402  	Ver             uint32
 403  	X__rsvd         uint32
 404  	Un              [16]byte
 405  	X_sysctl_size   [8]byte
 406  	X_sysctl_func   [8]byte
 407  	X_sysctl_parent [8]byte
 408  	X_sysctl_desc   [8]byte
 409  }
 410  
 411  type sigset struct {
 412  	X__bits [4]uint32
 413  }
 414