Source file src/syscall/ztypes_freebsd_arm64.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 arm64 && freebsd
     5  
     6  package syscall
     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 Rusage struct {
    34  	Utime    Timeval
    35  	Stime    Timeval
    36  	Maxrss   int64
    37  	Ixrss    int64
    38  	Idrss    int64
    39  	Isrss    int64
    40  	Minflt   int64
    41  	Majflt   int64
    42  	Nswap    int64
    43  	Inblock  int64
    44  	Oublock  int64
    45  	Msgsnd   int64
    46  	Msgrcv   int64
    47  	Nsignals int64
    48  	Nvcsw    int64
    49  	Nivcsw   int64
    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  	Atimespec     Timespec
    94  	Mtimespec     Timespec
    95  	Ctimespec     Timespec
    96  	Birthtimespec Timespec
    97  	Size          int64
    98  	Blocks        int64
    99  	Blksize       int32
   100  	Flags         uint32
   101  	Gen           uint64
   102  	Spare         [10]uint64
   103  }
   104  
   105  type Statfs_t struct {
   106  	Version     uint32
   107  	Type        uint32
   108  	Flags       uint64
   109  	Bsize       uint64
   110  	Iosize      uint64
   111  	Blocks      uint64
   112  	Bfree       uint64
   113  	Bavail      int64
   114  	Files       uint64
   115  	Ffree       int64
   116  	Syncwrites  uint64
   117  	Asyncwrites uint64
   118  	Syncreads   uint64
   119  	Asyncreads  uint64
   120  	Spare       [10]uint64
   121  	Namemax     uint32
   122  	Owner       uint32
   123  	Fsid        Fsid
   124  	Charspare   [80]int8
   125  	Fstypename  [16]int8
   126  	Mntfromname [1024]int8
   127  	Mntonname   [1024]int8
   128  }
   129  
   130  type Flock_t struct {
   131  	Start     int64
   132  	Len       int64
   133  	Pid       int32
   134  	Type      int16
   135  	Whence    int16
   136  	Sysid     int32
   137  	Pad_cgo_0 [4]byte
   138  }
   139  
   140  type Dirent struct {
   141  	Fileno uint64
   142  	Off    int64
   143  	Reclen uint16
   144  	Type   uint8
   145  	Pad0   uint8
   146  	Namlen uint16
   147  	Pad1   uint16
   148  	Name   [256]int8
   149  }
   150  
   151  type Fsid struct {
   152  	Val [2]int32
   153  }
   154  
   155  const (
   156  	pathMax = 0x400
   157  )
   158  
   159  type RawSockaddrInet4 struct {
   160  	Len    uint8
   161  	Family uint8
   162  	Port   uint16
   163  	Addr   [4]byte /* in_addr */
   164  	Zero   [8]int8
   165  }
   166  
   167  type RawSockaddrInet6 struct {
   168  	Len      uint8
   169  	Family   uint8
   170  	Port     uint16
   171  	Flowinfo uint32
   172  	Addr     [16]byte /* in6_addr */
   173  	Scope_id uint32
   174  }
   175  
   176  type RawSockaddrUnix struct {
   177  	Len    uint8
   178  	Family uint8
   179  	Path   [104]int8
   180  }
   181  
   182  type RawSockaddrDatalink struct {
   183  	Len    uint8
   184  	Family uint8
   185  	Index  uint16
   186  	Type   uint8
   187  	Nlen   uint8
   188  	Alen   uint8
   189  	Slen   uint8
   190  	Data   [46]int8
   191  }
   192  
   193  type RawSockaddr struct {
   194  	Len    uint8
   195  	Family uint8
   196  	Data   [14]int8
   197  }
   198  
   199  type RawSockaddrAny struct {
   200  	Addr RawSockaddr
   201  	Pad  [92]int8
   202  }
   203  
   204  type _Socklen uint32
   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  	Pad_cgo_0  [4]byte
   236  	Iov        *Iovec
   237  	Iovlen     int32
   238  	Pad_cgo_1  [4]byte
   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  	SizeofLinger           = 0x8
   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 Kevent_t struct {
   288  	Ident  uint64
   289  	Filter int16
   290  	Flags  uint16
   291  	Fflags uint32
   292  	Data   int64
   293  	Udata  *byte
   294  }
   295  
   296  type FdSet struct {
   297  	X__fds_bits [16]uint64
   298  }
   299  
   300  const (
   301  	sizeofIfMsghdr         = 0xa8
   302  	SizeofIfMsghdr         = 0xa8
   303  	sizeofIfData           = 0x98
   304  	SizeofIfData           = 0x98
   305  	SizeofIfaMsghdr        = 0x14
   306  	SizeofIfmaMsghdr       = 0x10
   307  	SizeofIfAnnounceMsghdr = 0x18
   308  	SizeofRtMsghdr         = 0x98
   309  	SizeofRtMetrics        = 0x70
   310  )
   311  
   312  type ifMsghdr struct {
   313  	Msglen    uint16
   314  	Version   uint8
   315  	Type      uint8
   316  	Addrs     int32
   317  	Flags     int32
   318  	Index     uint16
   319  	Pad_cgo_0 [2]byte
   320  	Data      ifData
   321  }
   322  
   323  type IfMsghdr struct {
   324  	Msglen    uint16
   325  	Version   uint8
   326  	Type      uint8
   327  	Addrs     int32
   328  	Flags     int32
   329  	Index     uint16
   330  	Pad_cgo_0 [2]byte
   331  	Data      IfData
   332  }
   333  
   334  type ifData struct {
   335  	Type        uint8
   336  	Physical    uint8
   337  	Addrlen     uint8
   338  	Hdrlen      uint8
   339  	Link_state  uint8
   340  	Vhid        uint8
   341  	Baudrate_pf uint8
   342  	Datalen     uint8
   343  	Mtu         uint64
   344  	Metric      uint64
   345  	Baudrate    uint64
   346  	Ipackets    uint64
   347  	Ierrors     uint64
   348  	Opackets    uint64
   349  	Oerrors     uint64
   350  	Collisions  uint64
   351  	Ibytes      uint64
   352  	Obytes      uint64
   353  	Imcasts     uint64
   354  	Omcasts     uint64
   355  	Iqdrops     uint64
   356  	Noproto     uint64
   357  	Hwassist    uint64
   358  	Epoch       int64
   359  	Lastchange  Timeval
   360  }
   361  
   362  type IfData struct {
   363  	Type        uint8
   364  	Physical    uint8
   365  	Addrlen     uint8
   366  	Hdrlen      uint8
   367  	Link_state  uint8
   368  	Spare_char1 uint8
   369  	Spare_char2 uint8
   370  	Datalen     uint8
   371  	Mtu         uint64
   372  	Metric      uint64
   373  	Baudrate    uint64
   374  	Ipackets    uint64
   375  	Ierrors     uint64
   376  	Opackets    uint64
   377  	Oerrors     uint64
   378  	Collisions  uint64
   379  	Ibytes      uint64
   380  	Obytes      uint64
   381  	Imcasts     uint64
   382  	Omcasts     uint64
   383  	Iqdrops     uint64
   384  	Noproto     uint64
   385  	Hwassist    uint64
   386  	Epoch       int64
   387  	Lastchange  Timeval
   388  }
   389  
   390  type IfaMsghdr struct {
   391  	Msglen    uint16
   392  	Version   uint8
   393  	Type      uint8
   394  	Addrs     int32
   395  	Flags     int32
   396  	Index     uint16
   397  	Pad_cgo_0 [2]byte
   398  	Metric    int32
   399  }
   400  
   401  type IfmaMsghdr struct {
   402  	Msglen    uint16
   403  	Version   uint8
   404  	Type      uint8
   405  	Addrs     int32
   406  	Flags     int32
   407  	Index     uint16
   408  	Pad_cgo_0 [2]byte
   409  }
   410  
   411  type IfAnnounceMsghdr struct {
   412  	Msglen  uint16
   413  	Version uint8
   414  	Type    uint8
   415  	Index   uint16
   416  	Name    [16]int8
   417  	What    uint16
   418  }
   419  
   420  type RtMsghdr struct {
   421  	Msglen    uint16
   422  	Version   uint8
   423  	Type      uint8
   424  	Index     uint16
   425  	Pad_cgo_0 [2]byte
   426  	Flags     int32
   427  	Addrs     int32
   428  	Pid       int32
   429  	Seq       int32
   430  	Errno     int32
   431  	Fmask     int32
   432  	Inits     uint64
   433  	Rmx       RtMetrics
   434  }
   435  
   436  type RtMetrics struct {
   437  	Locks    uint64
   438  	Mtu      uint64
   439  	Hopcount uint64
   440  	Expire   uint64
   441  	Recvpipe uint64
   442  	Sendpipe uint64
   443  	Ssthresh uint64
   444  	Rtt      uint64
   445  	Rttvar   uint64
   446  	Pksent   uint64
   447  	Weight   uint64
   448  	Filler   [3]uint64
   449  }
   450  
   451  const (
   452  	SizeofBpfVersion    = 0x4
   453  	SizeofBpfStat       = 0x8
   454  	SizeofBpfZbuf       = 0x18
   455  	SizeofBpfProgram    = 0x10
   456  	SizeofBpfInsn       = 0x8
   457  	SizeofBpfHdr        = 0x20
   458  	SizeofBpfZbufHeader = 0x20
   459  )
   460  
   461  type BpfVersion struct {
   462  	Major uint16
   463  	Minor uint16
   464  }
   465  
   466  type BpfStat struct {
   467  	Recv uint32
   468  	Drop uint32
   469  }
   470  
   471  type BpfZbuf struct {
   472  	Bufa   *byte
   473  	Bufb   *byte
   474  	Buflen uint64
   475  }
   476  
   477  type BpfProgram struct {
   478  	Len       uint32
   479  	Pad_cgo_0 [4]byte
   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 [6]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