Source file src/syscall/ztypes_freebsd_386.go

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

View as plain text