Source file src/syscall/ztypes_freebsd_arm.go

     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  
     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       int64
    25  	Nsec      int32
    26  	Pad_cgo_0 [4]byte
    27  }
    28  
    29  type Timeval struct {
    30  	Sec       int64
    31  	Usec      int32
    32  	Pad_cgo_0 [4]byte
    33  }
    34  
    35  type Rusage struct {
    36  	Utime    Timeval
    37  	Stime    Timeval
    38  	Maxrss   int32
    39  	Ixrss    int32
    40  	Idrss    int32
    41  	Isrss    int32
    42  	Minflt   int32
    43  	Majflt   int32
    44  	Nswap    int32
    45  	Inblock  int32
    46  	Oublock  int32
    47  	Msgsnd   int32
    48  	Msgrcv   int32
    49  	Nsignals int32
    50  	Nvcsw    int32
    51  	Nivcsw   int32
    52  }
    53  
    54  type Rlimit struct {
    55  	Cur int64
    56  	Max int64
    57  }
    58  
    59  type _Gid_t uint32
    60  
    61  const (
    62  	S_IFMT   = 0xf000
    63  	S_IFIFO  = 0x1000
    64  	S_IFCHR  = 0x2000
    65  	S_IFDIR  = 0x4000
    66  	S_IFBLK  = 0x6000
    67  	S_IFREG  = 0x8000
    68  	S_IFLNK  = 0xa000
    69  	S_IFSOCK = 0xc000
    70  	S_ISUID  = 0x800
    71  	S_ISGID  = 0x400
    72  	S_ISVTX  = 0x200
    73  	S_IRUSR  = 0x100
    74  	S_IWUSR  = 0x80
    75  	S_IXUSR  = 0x40
    76  	S_IRWXG  = 0x38
    77  	S_IRWXO  = 0x7
    78  )
    79  
    80  const (
    81  	_statfsVersion = 0x20140518
    82  	_dirblksiz     = 0x400
    83  )
    84  
    85  type Stat_t struct {
    86  	Dev           uint64
    87  	Ino           uint64
    88  	Nlink         uint64
    89  	Mode          uint16
    90  	Padding0      int16
    91  	Uid           uint32
    92  	Gid           uint32
    93  	Padding1      int32
    94  	Rdev          uint64
    95  	Atimespec     Timespec
    96  	Mtimespec     Timespec
    97  	Ctimespec     Timespec
    98  	Birthtimespec Timespec
    99  	Size          int64
   100  	Blocks        int64
   101  	Blksize       int32
   102  	Flags         uint32
   103  	Gen           uint64
   104  	Spare         [10]uint64
   105  }
   106  
   107  type Statfs_t struct {
   108  	Version     uint32
   109  	Type        uint32
   110  	Flags       uint64
   111  	Bsize       uint64
   112  	Iosize      uint64
   113  	Blocks      uint64
   114  	Bfree       uint64
   115  	Bavail      int64
   116  	Files       uint64
   117  	Ffree       int64
   118  	Syncwrites  uint64
   119  	Asyncwrites uint64
   120  	Syncreads   uint64
   121  	Asyncreads  uint64
   122  	Spare       [10]uint64
   123  	Namemax     uint32
   124  	Owner       uint32
   125  	Fsid        Fsid
   126  	Charspare   [80]int8
   127  	Fstypename  [16]int8
   128  	Mntfromname [1024]int8
   129  	Mntonname   [1024]int8
   130  }
   131  
   132  type Flock_t struct {
   133  	Start     int64
   134  	Len       int64
   135  	Pid       int32
   136  	Type      int16
   137  	Whence    int16
   138  	Sysid     int32
   139  	Pad_cgo_0 [4]byte
   140  }
   141  
   142  type Dirent struct {
   143  	Fileno uint64
   144  	Off    int64
   145  	Reclen uint16
   146  	Type   uint8
   147  	Pad0   uint8
   148  	Namlen uint16
   149  	Pad1   uint16
   150  	Name   [256]int8
   151  }
   152  
   153  type Fsid struct {
   154  	Val [2]int32
   155  }
   156  
   157  const (
   158  	pathMax = 0x400
   159  )
   160  
   161  type RawSockaddrInet4 struct {
   162  	Len    uint8
   163  	Family uint8
   164  	Port   uint16
   165  	Addr   [4]byte /* in_addr */
   166  	Zero   [8]int8
   167  }
   168  
   169  type RawSockaddrInet6 struct {
   170  	Len      uint8
   171  	Family   uint8
   172  	Port     uint16
   173  	Flowinfo uint32
   174  	Addr     [16]byte /* in6_addr */
   175  	Scope_id uint32
   176  }
   177  
   178  type RawSockaddrUnix struct {
   179  	Len    uint8
   180  	Family uint8
   181  	Path   [104]int8
   182  }
   183  
   184  type RawSockaddrDatalink struct {
   185  	Len    uint8
   186  	Family uint8
   187  	Index  uint16
   188  	Type   uint8
   189  	Nlen   uint8
   190  	Alen   uint8
   191  	Slen   uint8
   192  	Data   [46]int8
   193  }
   194  
   195  type RawSockaddr struct {
   196  	Len    uint8
   197  	Family uint8
   198  	Data   [14]int8
   199  }
   200  
   201  type RawSockaddrAny struct {
   202  	Addr RawSockaddr
   203  	Pad  [92]int8
   204  }
   205  
   206  type _Socklen uint32
   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  	SizeofLinger           = 0x8
   271  	SizeofIPMreq           = 0x8
   272  	SizeofIPMreqn          = 0xc
   273  	SizeofIPv6Mreq         = 0x14
   274  	SizeofMsghdr           = 0x1c
   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  uint32
   289  	Filter int16
   290  	Flags  uint16
   291  	Fflags uint32
   292  	Data   int32
   293  	Udata  *byte
   294  }
   295  
   296  type FdSet struct {
   297  	X__fds_bits [32]uint32
   298  }
   299  
   300  const (
   301  	sizeofIfMsghdr         = 0x70
   302  	SizeofIfMsghdr         = 0x70
   303  	sizeofIfData           = 0x60
   304  	SizeofIfData           = 0x60
   305  	SizeofIfaMsghdr        = 0x14
   306  	SizeofIfmaMsghdr       = 0x10
   307  	SizeofIfAnnounceMsghdr = 0x18
   308  	SizeofRtMsghdr         = 0x5c
   309  	SizeofRtMetrics        = 0x38
   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         uint32
   344  	Metric      uint32
   345  	Baudrate    uint32
   346  	Ipackets    uint32
   347  	Ierrors     uint32
   348  	Opackets    uint32
   349  	Oerrors     uint32
   350  	Collisions  uint32
   351  	Ibytes      uint32
   352  	Obytes      uint32
   353  	Imcasts     uint32
   354  	Omcasts     uint32
   355  	Iqdrops     uint32
   356  	Noproto     uint32
   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         uint32
   372  	Metric      uint32
   373  	Baudrate    uint32
   374  	Ipackets    uint32
   375  	Ierrors     uint32
   376  	Opackets    uint32
   377  	Oerrors     uint32
   378  	Collisions  uint32
   379  	Ibytes      uint32
   380  	Obytes      uint32
   381  	Imcasts     uint32
   382  	Omcasts     uint32
   383  	Iqdrops     uint32
   384  	Noproto     uint32
   385  	Hwassist    uint32
   386  	Pad_cgo_0   [4]byte
   387  	Epoch       int64
   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        = 0x20
   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 [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