golang.org/x/sys@v0.20.1-0.20240517151509-673e0f94c16d/unix/ztypes_freebsd_arm.go (about)

     1  // cgo -godefs -- -fsigned-char types_freebsd.go | go run mkpost.go
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  //go:build arm && freebsd
     5  
     6  package unix
     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  int64
    25  	Nsec int32
    26  	_    [4]byte
    27  }
    28  
    29  type Timeval struct {
    30  	Sec  int64
    31  	Usec int32
    32  	_    [4]byte
    33  }
    34  
    35  type Time_t int64
    36  
    37  type Rusage struct {
    38  	Utime    Timeval
    39  	Stime    Timeval
    40  	Maxrss   int32
    41  	Ixrss    int32
    42  	Idrss    int32
    43  	Isrss    int32
    44  	Minflt   int32
    45  	Majflt   int32
    46  	Nswap    int32
    47  	Inblock  int32
    48  	Oublock  int32
    49  	Msgsnd   int32
    50  	Msgrcv   int32
    51  	Nsignals int32
    52  	Nvcsw    int32
    53  	Nivcsw   int32
    54  }
    55  
    56  type Rlimit struct {
    57  	Cur int64
    58  	Max int64
    59  }
    60  
    61  type _Gid_t uint32
    62  
    63  const (
    64  	_statfsVersion = 0x20140518
    65  	_dirblksiz     = 0x400
    66  )
    67  
    68  type Stat_t struct {
    69  	Dev     uint64
    70  	Ino     uint64
    71  	Nlink   uint64
    72  	Mode    uint16
    73  	_0      int16
    74  	Uid     uint32
    75  	Gid     uint32
    76  	_1      int32
    77  	Rdev    uint64
    78  	Atim    Timespec
    79  	Mtim    Timespec
    80  	Ctim    Timespec
    81  	Btim    Timespec
    82  	Size    int64
    83  	Blocks  int64
    84  	Blksize int32
    85  	Flags   uint32
    86  	Gen     uint64
    87  	Spare   [10]uint64
    88  }
    89  
    90  type Statfs_t struct {
    91  	Version     uint32
    92  	Type        uint32
    93  	Flags       uint64
    94  	Bsize       uint64
    95  	Iosize      uint64
    96  	Blocks      uint64
    97  	Bfree       uint64
    98  	Bavail      int64
    99  	Files       uint64
   100  	Ffree       int64
   101  	Syncwrites  uint64
   102  	Asyncwrites uint64
   103  	Syncreads   uint64
   104  	Asyncreads  uint64
   105  	Spare       [10]uint64
   106  	Namemax     uint32
   107  	Owner       uint32
   108  	Fsid        Fsid
   109  	Charspare   [80]int8
   110  	Fstypename  [16]byte
   111  	Mntfromname [1024]byte
   112  	Mntonname   [1024]byte
   113  }
   114  
   115  type Flock_t struct {
   116  	Start  int64
   117  	Len    int64
   118  	Pid    int32
   119  	Type   int16
   120  	Whence int16
   121  	Sysid  int32
   122  	_      [4]byte
   123  }
   124  
   125  type Dirent struct {
   126  	Fileno uint64
   127  	Off    int64
   128  	Reclen uint16
   129  	Type   uint8
   130  	Pad0   uint8
   131  	Namlen uint16
   132  	Pad1   uint16
   133  	Name   [256]int8
   134  }
   135  
   136  type Fsid struct {
   137  	Val [2]int32
   138  }
   139  
   140  const (
   141  	PathMax = 0x400
   142  )
   143  
   144  const (
   145  	FADV_NORMAL     = 0x0
   146  	FADV_RANDOM     = 0x1
   147  	FADV_SEQUENTIAL = 0x2
   148  	FADV_WILLNEED   = 0x3
   149  	FADV_DONTNEED   = 0x4
   150  	FADV_NOREUSE    = 0x5
   151  )
   152  
   153  type RawSockaddrInet4 struct {
   154  	Len    uint8
   155  	Family uint8
   156  	Port   uint16
   157  	Addr   [4]byte /* in_addr */
   158  	Zero   [8]int8
   159  }
   160  
   161  type RawSockaddrInet6 struct {
   162  	Len      uint8
   163  	Family   uint8
   164  	Port     uint16
   165  	Flowinfo uint32
   166  	Addr     [16]byte /* in6_addr */
   167  	Scope_id uint32
   168  }
   169  
   170  type RawSockaddrUnix struct {
   171  	Len    uint8
   172  	Family uint8
   173  	Path   [104]int8
   174  }
   175  
   176  type RawSockaddrDatalink struct {
   177  	Len    uint8
   178  	Family uint8
   179  	Index  uint16
   180  	Type   uint8
   181  	Nlen   uint8
   182  	Alen   uint8
   183  	Slen   uint8
   184  	Data   [46]int8
   185  }
   186  
   187  type RawSockaddr struct {
   188  	Len    uint8
   189  	Family uint8
   190  	Data   [14]int8
   191  }
   192  
   193  type RawSockaddrAny struct {
   194  	Addr RawSockaddr
   195  	Pad  [92]int8
   196  }
   197  
   198  type _Socklen uint32
   199  
   200  type Xucred struct {
   201  	Version uint32
   202  	Uid     uint32
   203  	Ngroups int16
   204  	Groups  [16]uint32
   205  	_       *byte
   206  }
   207  
   208  type Linger struct {
   209  	Onoff  int32
   210  	Linger int32
   211  }
   212  
   213  type Iovec struct {
   214  	Base *byte
   215  	Len  uint32
   216  }
   217  
   218  type IPMreq struct {
   219  	Multiaddr [4]byte /* in_addr */
   220  	Interface [4]byte /* in_addr */
   221  }
   222  
   223  type IPMreqn struct {
   224  	Multiaddr [4]byte /* in_addr */
   225  	Address   [4]byte /* in_addr */
   226  	Ifindex   int32
   227  }
   228  
   229  type IPv6Mreq struct {
   230  	Multiaddr [16]byte /* in6_addr */
   231  	Interface uint32
   232  }
   233  
   234  type Msghdr struct {
   235  	Name       *byte
   236  	Namelen    uint32
   237  	Iov        *Iovec
   238  	Iovlen     int32
   239  	Control    *byte
   240  	Controllen uint32
   241  	Flags      int32
   242  }
   243  
   244  type Cmsghdr struct {
   245  	Len   uint32
   246  	Level int32
   247  	Type  int32
   248  }
   249  
   250  type Inet6Pktinfo struct {
   251  	Addr    [16]byte /* in6_addr */
   252  	Ifindex uint32
   253  }
   254  
   255  type IPv6MTUInfo struct {
   256  	Addr RawSockaddrInet6
   257  	Mtu  uint32
   258  }
   259  
   260  type ICMPv6Filter struct {
   261  	Filt [8]uint32
   262  }
   263  
   264  const (
   265  	SizeofSockaddrInet4    = 0x10
   266  	SizeofSockaddrInet6    = 0x1c
   267  	SizeofSockaddrAny      = 0x6c
   268  	SizeofSockaddrUnix     = 0x6a
   269  	SizeofSockaddrDatalink = 0x36
   270  	SizeofXucred           = 0x50
   271  	SizeofLinger           = 0x8
   272  	SizeofIovec            = 0x8
   273  	SizeofIPMreq           = 0x8
   274  	SizeofIPMreqn          = 0xc
   275  	SizeofIPv6Mreq         = 0x14
   276  	SizeofMsghdr           = 0x1c
   277  	SizeofCmsghdr          = 0xc
   278  	SizeofInet6Pktinfo     = 0x14
   279  	SizeofIPv6MTUInfo      = 0x20
   280  	SizeofICMPv6Filter     = 0x20
   281  )
   282  
   283  const (
   284  	PTRACE_TRACEME = 0x0
   285  	PTRACE_CONT    = 0x7
   286  	PTRACE_KILL    = 0x8
   287  )
   288  
   289  type PtraceLwpInfoStruct struct {
   290  	Lwpid        int32
   291  	Event        int32
   292  	Flags        int32
   293  	Sigmask      Sigset_t
   294  	Siglist      Sigset_t
   295  	Siginfo      __PtraceSiginfo
   296  	Tdname       [20]int8
   297  	Child_pid    int32
   298  	Syscall_code uint32
   299  	Syscall_narg uint32
   300  }
   301  
   302  type __Siginfo struct {
   303  	Signo  int32
   304  	Errno  int32
   305  	Code   int32
   306  	Pid    int32
   307  	Uid    uint32
   308  	Status int32
   309  	Addr   *byte
   310  	Value  [4]byte
   311  	_      [32]byte
   312  }
   313  
   314  type __PtraceSiginfo struct {
   315  	Signo  int32
   316  	Errno  int32
   317  	Code   int32
   318  	Pid    int32
   319  	Uid    uint32
   320  	Status int32
   321  	Addr   uintptr
   322  	Value  [4]byte
   323  	_      [32]byte
   324  }
   325  
   326  type Sigset_t struct {
   327  	Val [4]uint32
   328  }
   329  
   330  type Reg struct {
   331  	R    [13]uint32
   332  	Sp   uint32
   333  	Lr   uint32
   334  	Pc   uint32
   335  	Cpsr uint32
   336  }
   337  
   338  type FpReg struct {
   339  	Fpsr uint32
   340  	Fpr  [8]FpExtendedPrecision
   341  }
   342  
   343  type FpExtendedPrecision struct {
   344  	Exponent    uint32
   345  	Mantissa_hi uint32
   346  	Mantissa_lo uint32
   347  }
   348  
   349  type PtraceIoDesc struct {
   350  	Op   int32
   351  	Offs uintptr
   352  	Addr *byte
   353  	Len  uint32
   354  }
   355  
   356  type Kevent_t struct {
   357  	Ident  uint32
   358  	Filter int16
   359  	Flags  uint16
   360  	Fflags uint32
   361  	_      [4]byte
   362  	Data   int64
   363  	Udata  *byte
   364  	_      [4]byte
   365  	Ext    [4]uint64
   366  }
   367  
   368  type FdSet struct {
   369  	Bits [32]uint32
   370  }
   371  
   372  const (
   373  	sizeofIfMsghdr         = 0xa8
   374  	SizeofIfMsghdr         = 0x70
   375  	sizeofIfData           = 0x98
   376  	SizeofIfData           = 0x60
   377  	SizeofIfaMsghdr        = 0x14
   378  	SizeofIfmaMsghdr       = 0x10
   379  	SizeofIfAnnounceMsghdr = 0x18
   380  	SizeofRtMsghdr         = 0x5c
   381  	SizeofRtMetrics        = 0x38
   382  )
   383  
   384  type ifMsghdr struct {
   385  	Msglen  uint16
   386  	Version uint8
   387  	Type    uint8
   388  	Addrs   int32
   389  	Flags   int32
   390  	Index   uint16
   391  	_       uint16
   392  	Data    ifData
   393  }
   394  
   395  type IfMsghdr struct {
   396  	Msglen  uint16
   397  	Version uint8
   398  	Type    uint8
   399  	Addrs   int32
   400  	Flags   int32
   401  	Index   uint16
   402  	Data    IfData
   403  }
   404  
   405  type ifData struct {
   406  	Type       uint8
   407  	Physical   uint8
   408  	Addrlen    uint8
   409  	Hdrlen     uint8
   410  	Link_state uint8
   411  	Vhid       uint8
   412  	Datalen    uint16
   413  	Mtu        uint32
   414  	Metric     uint32
   415  	Baudrate   uint64
   416  	Ipackets   uint64
   417  	Ierrors    uint64
   418  	Opackets   uint64
   419  	Oerrors    uint64
   420  	Collisions uint64
   421  	Ibytes     uint64
   422  	Obytes     uint64
   423  	Imcasts    uint64
   424  	Omcasts    uint64
   425  	Iqdrops    uint64
   426  	Oqdrops    uint64
   427  	Noproto    uint64
   428  	Hwassist   uint64
   429  	_          [8]byte
   430  	_          [16]byte
   431  }
   432  
   433  type IfData struct {
   434  	Type        uint8
   435  	Physical    uint8
   436  	Addrlen     uint8
   437  	Hdrlen      uint8
   438  	Link_state  uint8
   439  	Spare_char1 uint8
   440  	Spare_char2 uint8
   441  	Datalen     uint8
   442  	Mtu         uint32
   443  	Metric      uint32
   444  	Baudrate    uint32
   445  	Ipackets    uint32
   446  	Ierrors     uint32
   447  	Opackets    uint32
   448  	Oerrors     uint32
   449  	Collisions  uint32
   450  	Ibytes      uint32
   451  	Obytes      uint32
   452  	Imcasts     uint32
   453  	Omcasts     uint32
   454  	Iqdrops     uint32
   455  	Noproto     uint32
   456  	Hwassist    uint32
   457  	_           [4]byte
   458  	Epoch       int64
   459  	Lastchange  Timeval
   460  }
   461  
   462  type IfaMsghdr struct {
   463  	Msglen  uint16
   464  	Version uint8
   465  	Type    uint8
   466  	Addrs   int32
   467  	Flags   int32
   468  	Index   uint16
   469  	_       uint16
   470  	Metric  int32
   471  }
   472  
   473  type IfmaMsghdr struct {
   474  	Msglen  uint16
   475  	Version uint8
   476  	Type    uint8
   477  	Addrs   int32
   478  	Flags   int32
   479  	Index   uint16
   480  	_       uint16
   481  }
   482  
   483  type IfAnnounceMsghdr struct {
   484  	Msglen  uint16
   485  	Version uint8
   486  	Type    uint8
   487  	Index   uint16
   488  	Name    [16]int8
   489  	What    uint16
   490  }
   491  
   492  type RtMsghdr struct {
   493  	Msglen  uint16
   494  	Version uint8
   495  	Type    uint8
   496  	Index   uint16
   497  	_       uint16
   498  	Flags   int32
   499  	Addrs   int32
   500  	Pid     int32
   501  	Seq     int32
   502  	Errno   int32
   503  	Fmask   int32
   504  	Inits   uint32
   505  	Rmx     RtMetrics
   506  }
   507  
   508  type RtMetrics struct {
   509  	Locks    uint32
   510  	Mtu      uint32
   511  	Hopcount uint32
   512  	Expire   uint32
   513  	Recvpipe uint32
   514  	Sendpipe uint32
   515  	Ssthresh uint32
   516  	Rtt      uint32
   517  	Rttvar   uint32
   518  	Pksent   uint32
   519  	Weight   uint32
   520  	Filler   [3]uint32
   521  }
   522  
   523  const (
   524  	SizeofBpfVersion    = 0x4
   525  	SizeofBpfStat       = 0x8
   526  	SizeofBpfZbuf       = 0xc
   527  	SizeofBpfProgram    = 0x8
   528  	SizeofBpfInsn       = 0x8
   529  	SizeofBpfHdr        = 0x20
   530  	SizeofBpfZbufHeader = 0x20
   531  )
   532  
   533  type BpfVersion struct {
   534  	Major uint16
   535  	Minor uint16
   536  }
   537  
   538  type BpfStat struct {
   539  	Recv uint32
   540  	Drop uint32
   541  }
   542  
   543  type BpfZbuf struct {
   544  	Bufa   *byte
   545  	Bufb   *byte
   546  	Buflen uint32
   547  }
   548  
   549  type BpfProgram struct {
   550  	Len   uint32
   551  	Insns *BpfInsn
   552  }
   553  
   554  type BpfInsn struct {
   555  	Code uint16
   556  	Jt   uint8
   557  	Jf   uint8
   558  	K    uint32
   559  }
   560  
   561  type BpfHdr struct {
   562  	Tstamp  Timeval
   563  	Caplen  uint32
   564  	Datalen uint32
   565  	Hdrlen  uint16
   566  	_       [6]byte
   567  }
   568  
   569  type BpfZbufHeader struct {
   570  	Kernel_gen uint32
   571  	Kernel_len uint32
   572  	User_gen   uint32
   573  	_          [5]uint32
   574  }
   575  
   576  type Termios struct {
   577  	Iflag  uint32
   578  	Oflag  uint32
   579  	Cflag  uint32
   580  	Lflag  uint32
   581  	Cc     [20]uint8
   582  	Ispeed uint32
   583  	Ospeed uint32
   584  }
   585  
   586  type Winsize struct {
   587  	Row    uint16
   588  	Col    uint16
   589  	Xpixel uint16
   590  	Ypixel uint16
   591  }
   592  
   593  const (
   594  	AT_FDCWD            = -0x64
   595  	AT_EACCESS          = 0x100
   596  	AT_SYMLINK_NOFOLLOW = 0x200
   597  	AT_SYMLINK_FOLLOW   = 0x400
   598  	AT_REMOVEDIR        = 0x800
   599  )
   600  
   601  type PollFd struct {
   602  	Fd      int32
   603  	Events  int16
   604  	Revents int16
   605  }
   606  
   607  const (
   608  	POLLERR      = 0x8
   609  	POLLHUP      = 0x10
   610  	POLLIN       = 0x1
   611  	POLLINIGNEOF = 0x2000
   612  	POLLNVAL     = 0x20
   613  	POLLOUT      = 0x4
   614  	POLLPRI      = 0x2
   615  	POLLRDBAND   = 0x80
   616  	POLLRDNORM   = 0x40
   617  	POLLWRBAND   = 0x100
   618  	POLLWRNORM   = 0x4
   619  )
   620  
   621  type CapRights struct {
   622  	Rights [2]uint64
   623  }
   624  
   625  type Utsname struct {
   626  	Sysname  [256]byte
   627  	Nodename [256]byte
   628  	Release  [256]byte
   629  	Version  [256]byte
   630  	Machine  [256]byte
   631  }
   632  
   633  const SizeofClockinfo = 0x14
   634  
   635  type Clockinfo struct {
   636  	Hz     int32
   637  	Tick   int32
   638  	Spare  int32
   639  	Stathz int32
   640  	Profhz int32
   641  }