Black Lives Matter. Support the Equal Justice Initiative.

Source file src/syscall/ztypes_freebsd_386.go

Documentation: syscall

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

View as plain text