Black Lives Matter. Support the Equal Justice Initiative.

Source file src/syscall/ztypes_freebsd_arm.go

Documentation: syscall

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

View as plain text