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