ztypes_freebsd_arm.mx raw

   1  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
   2  // cgo -godefs -- -fsigned-char types_freebsd.go
   3  
   4  package syscall
   5  
   6  const (
   7  	sizeofPtr      = 0x4
   8  	sizeofShort    = 0x2
   9  	sizeofInt      = 0x4
  10  	sizeofLong     = 0x4
  11  	sizeofLongLong = 0x8
  12  )
  13  
  14  type (
  15  	_C_short     int16
  16  	_C_int       int32
  17  	_C_long      int32
  18  	_C_long_long int64
  19  )
  20  
  21  type Timespec struct {
  22  	Sec       int64
  23  	Nsec      int32
  24  	Pad_cgo_0 [4]byte
  25  }
  26  
  27  type Timeval struct {
  28  	Sec       int64
  29  	Usec      int32
  30  	Pad_cgo_0 [4]byte
  31  }
  32  
  33  type Rusage struct {
  34  	Utime    Timeval
  35  	Stime    Timeval
  36  	Maxrss   int32
  37  	Ixrss    int32
  38  	Idrss    int32
  39  	Isrss    int32
  40  	Minflt   int32
  41  	Majflt   int32
  42  	Nswap    int32
  43  	Inblock  int32
  44  	Oublock  int32
  45  	Msgsnd   int32
  46  	Msgrcv   int32
  47  	Nsignals int32
  48  	Nvcsw    int32
  49  	Nivcsw   int32
  50  }
  51  
  52  type Rlimit struct {
  53  	Cur int64
  54  	Max int64
  55  }
  56  
  57  type _Gid_t uint32
  58  
  59  const (
  60  	S_IFMT   = 0xf000
  61  	S_IFIFO  = 0x1000
  62  	S_IFCHR  = 0x2000
  63  	S_IFDIR  = 0x4000
  64  	S_IFBLK  = 0x6000
  65  	S_IFREG  = 0x8000
  66  	S_IFLNK  = 0xa000
  67  	S_IFSOCK = 0xc000
  68  	S_ISUID  = 0x800
  69  	S_ISGID  = 0x400
  70  	S_ISVTX  = 0x200
  71  	S_IRUSR  = 0x100
  72  	S_IWUSR  = 0x80
  73  	S_IXUSR  = 0x40
  74  	S_IRWXG  = 0x38
  75  	S_IRWXO  = 0x7
  76  )
  77  
  78  const (
  79  	_statfsVersion = 0x20140518
  80  	_dirblksiz     = 0x400
  81  )
  82  
  83  type Stat_t struct {
  84  	Dev           uint64
  85  	Ino           uint64
  86  	Nlink         uint64
  87  	Mode          uint16
  88  	Padding0      int16
  89  	Uid           uint32
  90  	Gid           uint32
  91  	Padding1      int32
  92  	Rdev          uint64
  93  	Atimespec     Timespec
  94  	Mtimespec     Timespec
  95  	Ctimespec     Timespec
  96  	Birthtimespec Timespec
  97  	Size          int64
  98  	Blocks        int64
  99  	Blksize       int32
 100  	Flags         uint32
 101  	Gen           uint64
 102  	Spare         [10]uint64
 103  }
 104  
 105  type Statfs_t struct {
 106  	Version     uint32
 107  	Type        uint32
 108  	Flags       uint64
 109  	Bsize       uint64
 110  	Iosize      uint64
 111  	Blocks      uint64
 112  	Bfree       uint64
 113  	Bavail      int64
 114  	Files       uint64
 115  	Ffree       int64
 116  	Syncwrites  uint64
 117  	Asyncwrites uint64
 118  	Syncreads   uint64
 119  	Asyncreads  uint64
 120  	Spare       [10]uint64
 121  	Namemax     uint32
 122  	Owner       uint32
 123  	Fsid        Fsid
 124  	Charspare   [80]int8
 125  	Fstypename  [16]int8
 126  	Mntfromname [1024]int8
 127  	Mntonname   [1024]int8
 128  }
 129  
 130  type Flock_t struct {
 131  	Start     int64
 132  	Len       int64
 133  	Pid       int32
 134  	Type      int16
 135  	Whence    int16
 136  	Sysid     int32
 137  	Pad_cgo_0 [4]byte
 138  }
 139  
 140  type Dirent struct {
 141  	Fileno uint64
 142  	Off    int64
 143  	Reclen uint16
 144  	Type   uint8
 145  	Pad0   uint8
 146  	Namlen uint16
 147  	Pad1   uint16
 148  	Name   [256]int8
 149  }
 150  
 151  type Fsid struct {
 152  	Val [2]int32
 153  }
 154  
 155  const (
 156  	pathMax = 0x400
 157  )
 158  
 159  type RawSockaddrInet4 struct {
 160  	Len    uint8
 161  	Family uint8
 162  	Port   uint16
 163  	Addr   [4]byte /* in_addr */
 164  	Zero   [8]int8
 165  }
 166  
 167  type RawSockaddrInet6 struct {
 168  	Len      uint8
 169  	Family   uint8
 170  	Port     uint16
 171  	Flowinfo uint32
 172  	Addr     [16]byte /* in6_addr */
 173  	Scope_id uint32
 174  }
 175  
 176  type RawSockaddrUnix struct {
 177  	Len    uint8
 178  	Family uint8
 179  	Path   [104]int8
 180  }
 181  
 182  type RawSockaddrDatalink struct {
 183  	Len    uint8
 184  	Family uint8
 185  	Index  uint16
 186  	Type   uint8
 187  	Nlen   uint8
 188  	Alen   uint8
 189  	Slen   uint8
 190  	Data   [46]int8
 191  }
 192  
 193  type RawSockaddr struct {
 194  	Len    uint8
 195  	Family uint8
 196  	Data   [14]int8
 197  }
 198  
 199  type RawSockaddrAny struct {
 200  	Addr RawSockaddr
 201  	Pad  [92]int8
 202  }
 203  
 204  type _Socklen uint32
 205  
 206  type Linger struct {
 207  	Onoff  int32
 208  	Linger int32
 209  }
 210  
 211  type Iovec struct {
 212  	Base *byte
 213  	Len  uint32
 214  }
 215  
 216  type IPMreq struct {
 217  	Multiaddr [4]byte /* in_addr */
 218  	Interface [4]byte /* in_addr */
 219  }
 220  
 221  type IPMreqn struct {
 222  	Multiaddr [4]byte /* in_addr */
 223  	Address   [4]byte /* in_addr */
 224  	Ifindex   int32
 225  }
 226  
 227  type IPv6Mreq struct {
 228  	Multiaddr [16]byte /* in6_addr */
 229  	Interface uint32
 230  }
 231  
 232  type Msghdr struct {
 233  	Name       *byte
 234  	Namelen    uint32
 235  	Iov        *Iovec
 236  	Iovlen     int32
 237  	Control    *byte
 238  	Controllen uint32
 239  	Flags      int32
 240  }
 241  
 242  type Cmsghdr struct {
 243  	Len   uint32
 244  	Level int32
 245  	Type  int32
 246  }
 247  
 248  type Inet6Pktinfo struct {
 249  	Addr    [16]byte /* in6_addr */
 250  	Ifindex uint32
 251  }
 252  
 253  type IPv6MTUInfo struct {
 254  	Addr RawSockaddrInet6
 255  	Mtu  uint32
 256  }
 257  
 258  type ICMPv6Filter struct {
 259  	Filt [8]uint32
 260  }
 261  
 262  const (
 263  	SizeofSockaddrInet4    = 0x10
 264  	SizeofSockaddrInet6    = 0x1c
 265  	SizeofSockaddrAny      = 0x6c
 266  	SizeofSockaddrUnix     = 0x6a
 267  	SizeofSockaddrDatalink = 0x36
 268  	SizeofLinger           = 0x8
 269  	SizeofIPMreq           = 0x8
 270  	SizeofIPMreqn          = 0xc
 271  	SizeofIPv6Mreq         = 0x14
 272  	SizeofMsghdr           = 0x1c
 273  	SizeofCmsghdr          = 0xc
 274  	SizeofInet6Pktinfo     = 0x14
 275  	SizeofIPv6MTUInfo      = 0x20
 276  	SizeofICMPv6Filter     = 0x20
 277  )
 278  
 279  const (
 280  	PTRACE_TRACEME = 0x0
 281  	PTRACE_CONT    = 0x7
 282  	PTRACE_KILL    = 0x8
 283  )
 284  
 285  type Kevent_t struct {
 286  	Ident  uint32
 287  	Filter int16
 288  	Flags  uint16
 289  	Fflags uint32
 290  	Data   int32
 291  	Udata  *byte
 292  }
 293  
 294  type FdSet struct {
 295  	X__fds_bits [32]uint32
 296  }
 297  
 298  const (
 299  	sizeofIfMsghdr         = 0x70
 300  	SizeofIfMsghdr         = 0x70
 301  	sizeofIfData           = 0x60
 302  	SizeofIfData           = 0x60
 303  	SizeofIfaMsghdr        = 0x14
 304  	SizeofIfmaMsghdr       = 0x10
 305  	SizeofIfAnnounceMsghdr = 0x18
 306  	SizeofRtMsghdr         = 0x5c
 307  	SizeofRtMetrics        = 0x38
 308  )
 309  
 310  type ifMsghdr struct {
 311  	Msglen    uint16
 312  	Version   uint8
 313  	Type      uint8
 314  	Addrs     int32
 315  	Flags     int32
 316  	Index     uint16
 317  	Pad_cgo_0 [2]byte
 318  	Data      ifData
 319  }
 320  
 321  type IfMsghdr struct {
 322  	Msglen    uint16
 323  	Version   uint8
 324  	Type      uint8
 325  	Addrs     int32
 326  	Flags     int32
 327  	Index     uint16
 328  	Pad_cgo_0 [2]byte
 329  	Data      IfData
 330  }
 331  
 332  type ifData struct {
 333  	Type        uint8
 334  	Physical    uint8
 335  	Addrlen     uint8
 336  	Hdrlen      uint8
 337  	Link_state  uint8
 338  	Vhid        uint8
 339  	Baudrate_pf uint8
 340  	Datalen     uint8
 341  	Mtu         uint32
 342  	Metric      uint32
 343  	Baudrate    uint32
 344  	Ipackets    uint32
 345  	Ierrors     uint32
 346  	Opackets    uint32
 347  	Oerrors     uint32
 348  	Collisions  uint32
 349  	Ibytes      uint32
 350  	Obytes      uint32
 351  	Imcasts     uint32
 352  	Omcasts     uint32
 353  	Iqdrops     uint32
 354  	Noproto     uint32
 355  	Hwassist    uint64
 356  	Epoch       int64
 357  	Lastchange  Timeval
 358  }
 359  
 360  type IfData struct {
 361  	Type        uint8
 362  	Physical    uint8
 363  	Addrlen     uint8
 364  	Hdrlen      uint8
 365  	Link_state  uint8
 366  	Spare_char1 uint8
 367  	Spare_char2 uint8
 368  	Datalen     uint8
 369  	Mtu         uint32
 370  	Metric      uint32
 371  	Baudrate    uint32
 372  	Ipackets    uint32
 373  	Ierrors     uint32
 374  	Opackets    uint32
 375  	Oerrors     uint32
 376  	Collisions  uint32
 377  	Ibytes      uint32
 378  	Obytes      uint32
 379  	Imcasts     uint32
 380  	Omcasts     uint32
 381  	Iqdrops     uint32
 382  	Noproto     uint32
 383  	Hwassist    uint32
 384  	Pad_cgo_0   [4]byte
 385  	Epoch       int64
 386  	Lastchange  Timeval
 387  }
 388  
 389  type IfaMsghdr struct {
 390  	Msglen    uint16
 391  	Version   uint8
 392  	Type      uint8
 393  	Addrs     int32
 394  	Flags     int32
 395  	Index     uint16
 396  	Pad_cgo_0 [2]byte
 397  	Metric    int32
 398  }
 399  
 400  type IfmaMsghdr struct {
 401  	Msglen    uint16
 402  	Version   uint8
 403  	Type      uint8
 404  	Addrs     int32
 405  	Flags     int32
 406  	Index     uint16
 407  	Pad_cgo_0 [2]byte
 408  }
 409  
 410  type IfAnnounceMsghdr struct {
 411  	Msglen  uint16
 412  	Version uint8
 413  	Type    uint8
 414  	Index   uint16
 415  	Name    [16]int8
 416  	What    uint16
 417  }
 418  
 419  type RtMsghdr struct {
 420  	Msglen    uint16
 421  	Version   uint8
 422  	Type      uint8
 423  	Index     uint16
 424  	Pad_cgo_0 [2]byte
 425  	Flags     int32
 426  	Addrs     int32
 427  	Pid       int32
 428  	Seq       int32
 429  	Errno     int32
 430  	Fmask     int32
 431  	Inits     uint32
 432  	Rmx       RtMetrics
 433  }
 434  
 435  type RtMetrics struct {
 436  	Locks    uint32
 437  	Mtu      uint32
 438  	Hopcount uint32
 439  	Expire   uint32
 440  	Recvpipe uint32
 441  	Sendpipe uint32
 442  	Ssthresh uint32
 443  	Rtt      uint32
 444  	Rttvar   uint32
 445  	Pksent   uint32
 446  	Weight   uint32
 447  	Filler   [3]uint32
 448  }
 449  
 450  const (
 451  	SizeofBpfVersion    = 0x4
 452  	SizeofBpfStat       = 0x8
 453  	SizeofBpfZbuf       = 0xc
 454  	SizeofBpfProgram    = 0x8
 455  	SizeofBpfInsn       = 0x8
 456  	SizeofBpfHdr        = 0x20
 457  	SizeofBpfZbufHeader = 0x20
 458  )
 459  
 460  type BpfVersion struct {
 461  	Major uint16
 462  	Minor uint16
 463  }
 464  
 465  type BpfStat struct {
 466  	Recv uint32
 467  	Drop uint32
 468  }
 469  
 470  type BpfZbuf struct {
 471  	Bufa   *byte
 472  	Bufb   *byte
 473  	Buflen uint32
 474  }
 475  
 476  type BpfProgram struct {
 477  	Len   uint32
 478  	Insns *BpfInsn
 479  }
 480  
 481  type BpfInsn struct {
 482  	Code uint16
 483  	Jt   uint8
 484  	Jf   uint8
 485  	K    uint32
 486  }
 487  
 488  type BpfHdr struct {
 489  	Tstamp    Timeval
 490  	Caplen    uint32
 491  	Datalen   uint32
 492  	Hdrlen    uint16
 493  	Pad_cgo_0 [6]byte
 494  }
 495  
 496  type BpfZbufHeader struct {
 497  	Kernel_gen uint32
 498  	Kernel_len uint32
 499  	User_gen   uint32
 500  	X_bzh_pad  [5]uint32
 501  }
 502  
 503  const (
 504  	_AT_FDCWD            = -0x64
 505  	_AT_SYMLINK_FOLLOW   = 0x400
 506  	_AT_SYMLINK_NOFOLLOW = 0x200
 507  )
 508  
 509  type Termios struct {
 510  	Iflag  uint32
 511  	Oflag  uint32
 512  	Cflag  uint32
 513  	Lflag  uint32
 514  	Cc     [20]uint8
 515  	Ispeed uint32
 516  	Ospeed uint32
 517  }
 518