github.com/m10x/go/src@v0.0.0-20220112094212-ba61592315da/syscall/ztypes_openbsd_arm.go (about)

     1  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     2  // cgo -godefs -- -fsigned-char types_openbsd.go
     3  
     4  package syscall
     5  
     6  const (
     7  	sizeofPtr      = 0x4
     8  	sizeofShort    = 0x2
     9  	sizeofInt      = 0x4
    10  	sizeofLong     = 0x4
    11  	sizeofLongLong = 0x8
    12  )
    13  
    14  type (
    15  	_C_short     int16
    16  	_C_int       int32
    17  	_C_long      int32
    18  	_C_long_long int64
    19  )
    20  
    21  type Timespec struct {
    22  	Sec       int64
    23  	Nsec      int32
    24  	Pad_cgo_0 [4]byte
    25  }
    26  
    27  type Timeval struct {
    28  	Sec       int64
    29  	Usec      int32
    30  	Pad_cgo_0 [4]byte
    31  }
    32  
    33  type Rusage struct {
    34  	Utime    Timeval
    35  	Stime    Timeval
    36  	Maxrss   int32
    37  	Ixrss    int32
    38  	Idrss    int32
    39  	Isrss    int32
    40  	Minflt   int32
    41  	Majflt   int32
    42  	Nswap    int32
    43  	Inblock  int32
    44  	Oublock  int32
    45  	Msgsnd   int32
    46  	Msgrcv   int32
    47  	Nsignals int32
    48  	Nvcsw    int32
    49  	Nivcsw   int32
    50  }
    51  
    52  type Rlimit struct {
    53  	Cur uint64
    54  	Max uint64
    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  type Stat_t struct {
    79  	Mode           uint32
    80  	Dev            int32
    81  	Ino            uint64
    82  	Nlink          uint32
    83  	Uid            uint32
    84  	Gid            uint32
    85  	Rdev           int32
    86  	Atim           Timespec
    87  	Mtim           Timespec
    88  	Ctim           Timespec
    89  	Size           int64
    90  	Blocks         int64
    91  	Blksize        int32
    92  	Flags          uint32
    93  	Gen            uint32
    94  	Pad_cgo_0      [4]byte
    95  	X__st_birthtim Timespec
    96  }
    97  
    98  type Statfs_t struct {
    99  	F_flags       uint32
   100  	F_bsize       uint32
   101  	F_iosize      uint32
   102  	Pad_cgo_0     [4]byte
   103  	F_blocks      uint64
   104  	F_bfree       uint64
   105  	F_bavail      int64
   106  	F_files       uint64
   107  	F_ffree       uint64
   108  	F_favail      int64
   109  	F_syncwrites  uint64
   110  	F_syncreads   uint64
   111  	F_asyncwrites uint64
   112  	F_asyncreads  uint64
   113  	F_fsid        Fsid
   114  	F_namemax     uint32
   115  	F_owner       uint32
   116  	F_ctime       uint64
   117  	F_fstypename  [16]int8
   118  	F_mntonname   [90]int8
   119  	F_mntfromname [90]int8
   120  	F_mntfromspec [90]int8
   121  	Pad_cgo_1     [2]byte
   122  	Mount_info    [160]byte
   123  }
   124  
   125  type Flock_t struct {
   126  	Start  int64
   127  	Len    int64
   128  	Pid    int32
   129  	Type   int16
   130  	Whence int16
   131  }
   132  
   133  type Dirent struct {
   134  	Fileno       uint64
   135  	Off          int64
   136  	Reclen       uint16
   137  	Type         uint8
   138  	Namlen       uint8
   139  	X__d_padding [4]uint8
   140  	Name         [256]int8
   141  }
   142  
   143  type Fsid struct {
   144  	Val [2]int32
   145  }
   146  
   147  const (
   148  	pathMax = 0x400
   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   [24]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 Linger struct {
   199  	Onoff  int32
   200  	Linger int32
   201  }
   202  
   203  type Iovec struct {
   204  	Base *byte
   205  	Len  uint32
   206  }
   207  
   208  type IPMreq struct {
   209  	Multiaddr [4]byte /* in_addr */
   210  	Interface [4]byte /* in_addr */
   211  }
   212  
   213  type IPv6Mreq struct {
   214  	Multiaddr [16]byte /* in6_addr */
   215  	Interface uint32
   216  }
   217  
   218  type Msghdr struct {
   219  	Name       *byte
   220  	Namelen    uint32
   221  	Iov        *Iovec
   222  	Iovlen     uint32
   223  	Control    *byte
   224  	Controllen uint32
   225  	Flags      int32
   226  }
   227  
   228  type Cmsghdr struct {
   229  	Len   uint32
   230  	Level int32
   231  	Type  int32
   232  }
   233  
   234  type Inet6Pktinfo struct {
   235  	Addr    [16]byte /* in6_addr */
   236  	Ifindex uint32
   237  }
   238  
   239  type IPv6MTUInfo struct {
   240  	Addr RawSockaddrInet6
   241  	Mtu  uint32
   242  }
   243  
   244  type ICMPv6Filter struct {
   245  	Filt [8]uint32
   246  }
   247  
   248  const (
   249  	SizeofSockaddrInet4    = 0x10
   250  	SizeofSockaddrInet6    = 0x1c
   251  	SizeofSockaddrAny      = 0x6c
   252  	SizeofSockaddrUnix     = 0x6a
   253  	SizeofSockaddrDatalink = 0x20
   254  	SizeofLinger           = 0x8
   255  	SizeofIPMreq           = 0x8
   256  	SizeofIPv6Mreq         = 0x14
   257  	SizeofMsghdr           = 0x1c
   258  	SizeofCmsghdr          = 0xc
   259  	SizeofInet6Pktinfo     = 0x14
   260  	SizeofIPv6MTUInfo      = 0x20
   261  	SizeofICMPv6Filter     = 0x20
   262  )
   263  
   264  const (
   265  	PTRACE_TRACEME = 0x0
   266  	PTRACE_CONT    = 0x7
   267  	PTRACE_KILL    = 0x8
   268  )
   269  
   270  type Kevent_t struct {
   271  	Ident     uint32
   272  	Filter    int16
   273  	Flags     uint16
   274  	Fflags    uint32
   275  	Pad_cgo_0 [4]byte
   276  	Data      int64
   277  	Udata     *byte
   278  	Pad_cgo_1 [4]byte
   279  }
   280  
   281  type FdSet struct {
   282  	Bits [32]uint32
   283  }
   284  
   285  const (
   286  	SizeofIfMsghdr         = 0xa8
   287  	SizeofIfData           = 0x90
   288  	SizeofIfaMsghdr        = 0x18
   289  	SizeofIfAnnounceMsghdr = 0x1a
   290  	SizeofRtMsghdr         = 0x60
   291  	SizeofRtMetrics        = 0x38
   292  )
   293  
   294  type IfMsghdr struct {
   295  	Msglen  uint16
   296  	Version uint8
   297  	Type    uint8
   298  	Hdrlen  uint16
   299  	Index   uint16
   300  	Tableid uint16
   301  	Pad1    uint8
   302  	Pad2    uint8
   303  	Addrs   int32
   304  	Flags   int32
   305  	Xflags  int32
   306  	Data    IfData
   307  }
   308  
   309  type IfData struct {
   310  	Type         uint8
   311  	Addrlen      uint8
   312  	Hdrlen       uint8
   313  	Link_state   uint8
   314  	Mtu          uint32
   315  	Metric       uint32
   316  	Rdomain      uint32
   317  	Baudrate     uint64
   318  	Ipackets     uint64
   319  	Ierrors      uint64
   320  	Opackets     uint64
   321  	Oerrors      uint64
   322  	Collisions   uint64
   323  	Ibytes       uint64
   324  	Obytes       uint64
   325  	Imcasts      uint64
   326  	Omcasts      uint64
   327  	Iqdrops      uint64
   328  	Oqdrops      uint64
   329  	Noproto      uint64
   330  	Capabilities uint32
   331  	Pad_cgo_0    [4]byte
   332  	Lastchange   Timeval
   333  }
   334  
   335  type IfaMsghdr struct {
   336  	Msglen  uint16
   337  	Version uint8
   338  	Type    uint8
   339  	Hdrlen  uint16
   340  	Index   uint16
   341  	Tableid uint16
   342  	Pad1    uint8
   343  	Pad2    uint8
   344  	Addrs   int32
   345  	Flags   int32
   346  	Metric  int32
   347  }
   348  
   349  type IfAnnounceMsghdr struct {
   350  	Msglen  uint16
   351  	Version uint8
   352  	Type    uint8
   353  	Hdrlen  uint16
   354  	Index   uint16
   355  	What    uint16
   356  	Name    [16]int8
   357  }
   358  
   359  type RtMsghdr struct {
   360  	Msglen   uint16
   361  	Version  uint8
   362  	Type     uint8
   363  	Hdrlen   uint16
   364  	Index    uint16
   365  	Tableid  uint16
   366  	Priority uint8
   367  	Mpls     uint8
   368  	Addrs    int32
   369  	Flags    int32
   370  	Fmask    int32
   371  	Pid      int32
   372  	Seq      int32
   373  	Errno    int32
   374  	Inits    uint32
   375  	Rmx      RtMetrics
   376  }
   377  
   378  type RtMetrics struct {
   379  	Pksent   uint64
   380  	Expire   int64
   381  	Locks    uint32
   382  	Mtu      uint32
   383  	Refcnt   uint32
   384  	Hopcount uint32
   385  	Recvpipe uint32
   386  	Sendpipe uint32
   387  	Ssthresh uint32
   388  	Rtt      uint32
   389  	Rttvar   uint32
   390  	Pad      uint32
   391  }
   392  
   393  type Mclpool struct{}
   394  
   395  const (
   396  	SizeofBpfVersion = 0x4
   397  	SizeofBpfStat    = 0x8
   398  	SizeofBpfProgram = 0x8
   399  	SizeofBpfInsn    = 0x8
   400  	SizeofBpfHdr     = 0x14
   401  )
   402  
   403  type BpfVersion struct {
   404  	Major uint16
   405  	Minor uint16
   406  }
   407  
   408  type BpfStat struct {
   409  	Recv uint32
   410  	Drop uint32
   411  }
   412  
   413  type BpfProgram struct {
   414  	Len   uint32
   415  	Insns *BpfInsn
   416  }
   417  
   418  type BpfInsn struct {
   419  	Code uint16
   420  	Jt   uint8
   421  	Jf   uint8
   422  	K    uint32
   423  }
   424  
   425  type BpfHdr struct {
   426  	Tstamp    BpfTimeval
   427  	Caplen    uint32
   428  	Datalen   uint32
   429  	Hdrlen    uint16
   430  	Pad_cgo_0 [2]byte
   431  }
   432  
   433  type BpfTimeval struct {
   434  	Sec  uint32
   435  	Usec uint32
   436  }
   437  
   438  const (
   439  	_AT_FDCWD = -0x64
   440  )
   441  
   442  type Termios struct {
   443  	Iflag  uint32
   444  	Oflag  uint32
   445  	Cflag  uint32
   446  	Lflag  uint32
   447  	Cc     [20]uint8
   448  	Ispeed int32
   449  	Ospeed int32
   450  }