Black Lives Matter. Support the Equal Justice Initiative.

Source file src/syscall/ztypes_netbsd_arm.go

Documentation: syscall

     1  // Created by cgo -godefs - DO NOT EDIT
     2  // cgo -godefs types_netbsd.go
     3  
     4  //go:build arm && netbsd
     5  // +build arm,netbsd
     6  
     7  package syscall
     8  
     9  const (
    10  	sizeofPtr      = 0x4
    11  	sizeofShort    = 0x2
    12  	sizeofInt      = 0x4
    13  	sizeofLong     = 0x4
    14  	sizeofLongLong = 0x8
    15  )
    16  
    17  type (
    18  	_C_short     int16
    19  	_C_int       int32
    20  	_C_long      int32
    21  	_C_long_long int64
    22  )
    23  
    24  type Timespec struct {
    25  	Sec       int64
    26  	Nsec      int32
    27  	Pad_cgo_0 [4]byte
    28  }
    29  
    30  type Timeval struct {
    31  	Sec       int64
    32  	Usec      int32
    33  	Pad_cgo_0 [4]byte
    34  }
    35  
    36  type Rusage struct {
    37  	Utime    Timeval
    38  	Stime    Timeval
    39  	Maxrss   int32
    40  	Ixrss    int32
    41  	Idrss    int32
    42  	Isrss    int32
    43  	Minflt   int32
    44  	Majflt   int32
    45  	Nswap    int32
    46  	Inblock  int32
    47  	Oublock  int32
    48  	Msgsnd   int32
    49  	Msgrcv   int32
    50  	Nsignals int32
    51  	Nvcsw    int32
    52  	Nivcsw   int32
    53  }
    54  
    55  type Rlimit struct {
    56  	Cur uint64
    57  	Max uint64
    58  }
    59  
    60  type _Gid_t uint32
    61  
    62  type Stat_t struct {
    63  	Dev           uint64
    64  	Mode          uint32
    65  	Pad_cgo_0     [4]byte
    66  	Ino           uint64
    67  	Nlink         uint32
    68  	Uid           uint32
    69  	Gid           uint32
    70  	Pad_cgo_1     [4]byte
    71  	Rdev          uint64
    72  	Atimespec     Timespec
    73  	Mtimespec     Timespec
    74  	Ctimespec     Timespec
    75  	Birthtimespec Timespec
    76  	Size          int64
    77  	Blocks        int64
    78  	Blksize       uint32
    79  	Flags         uint32
    80  	Gen           uint32
    81  	Spare         [2]uint32
    82  	Pad_cgo_2     [4]byte
    83  }
    84  
    85  type Statfs_t [0]byte
    86  
    87  type Flock_t struct {
    88  	Start  int64
    89  	Len    int64
    90  	Pid    int32
    91  	Type   int16
    92  	Whence int16
    93  }
    94  
    95  type Dirent struct {
    96  	Fileno    uint64
    97  	Reclen    uint16
    98  	Namlen    uint16
    99  	Type      uint8
   100  	Name      [512]int8
   101  	Pad_cgo_0 [3]byte
   102  }
   103  
   104  type Fsid struct {
   105  	X__fsid_val [2]int32
   106  }
   107  
   108  const (
   109  	pathMax = 0x400
   110  )
   111  
   112  type RawSockaddrInet4 struct {
   113  	Len    uint8
   114  	Family uint8
   115  	Port   uint16
   116  	Addr   [4]byte /* in_addr */
   117  	Zero   [8]int8
   118  }
   119  
   120  type RawSockaddrInet6 struct {
   121  	Len      uint8
   122  	Family   uint8
   123  	Port     uint16
   124  	Flowinfo uint32
   125  	Addr     [16]byte /* in6_addr */
   126  	Scope_id uint32
   127  }
   128  
   129  type RawSockaddrUnix struct {
   130  	Len    uint8
   131  	Family uint8
   132  	Path   [104]int8
   133  }
   134  
   135  type RawSockaddrDatalink struct {
   136  	Len    uint8
   137  	Family uint8
   138  	Index  uint16
   139  	Type   uint8
   140  	Nlen   uint8
   141  	Alen   uint8
   142  	Slen   uint8
   143  	Data   [12]int8
   144  }
   145  
   146  type RawSockaddr struct {
   147  	Len    uint8
   148  	Family uint8
   149  	Data   [14]int8
   150  }
   151  
   152  type RawSockaddrAny struct {
   153  	Addr RawSockaddr
   154  	Pad  [92]int8
   155  }
   156  
   157  type _Socklen uint32
   158  
   159  type Linger struct {
   160  	Onoff  int32
   161  	Linger int32
   162  }
   163  
   164  type Iovec struct {
   165  	Base *byte
   166  	Len  uint32
   167  }
   168  
   169  type IPMreq struct {
   170  	Multiaddr [4]byte /* in_addr */
   171  	Interface [4]byte /* in_addr */
   172  }
   173  
   174  type IPv6Mreq struct {
   175  	Multiaddr [16]byte /* in6_addr */
   176  	Interface uint32
   177  }
   178  
   179  type Msghdr struct {
   180  	Name       *byte
   181  	Namelen    uint32
   182  	Iov        *Iovec
   183  	Iovlen     int32
   184  	Control    *byte
   185  	Controllen uint32
   186  	Flags      int32
   187  }
   188  
   189  type Cmsghdr struct {
   190  	Len   uint32
   191  	Level int32
   192  	Type  int32
   193  }
   194  
   195  type Inet6Pktinfo struct {
   196  	Addr    [16]byte /* in6_addr */
   197  	Ifindex uint32
   198  }
   199  
   200  type IPv6MTUInfo struct {
   201  	Addr RawSockaddrInet6
   202  	Mtu  uint32
   203  }
   204  
   205  type ICMPv6Filter struct {
   206  	Filt [8]uint32
   207  }
   208  
   209  const (
   210  	SizeofSockaddrInet4    = 0x10
   211  	SizeofSockaddrInet6    = 0x1c
   212  	SizeofSockaddrAny      = 0x6c
   213  	SizeofSockaddrUnix     = 0x6a
   214  	SizeofSockaddrDatalink = 0x14
   215  	SizeofLinger           = 0x8
   216  	SizeofIPMreq           = 0x8
   217  	SizeofIPv6Mreq         = 0x14
   218  	SizeofMsghdr           = 0x1c
   219  	SizeofCmsghdr          = 0xc
   220  	SizeofInet6Pktinfo     = 0x14
   221  	SizeofIPv6MTUInfo      = 0x20
   222  	SizeofICMPv6Filter     = 0x20
   223  )
   224  
   225  const (
   226  	PTRACE_TRACEME = 0x0
   227  	PTRACE_CONT    = 0x7
   228  	PTRACE_KILL    = 0x8
   229  )
   230  
   231  type Kevent_t struct {
   232  	Ident     uint32
   233  	Filter    uint32
   234  	Flags     uint32
   235  	Fflags    uint32
   236  	Data      int64
   237  	Udata     int32
   238  	Pad_cgo_0 [4]byte
   239  }
   240  
   241  type FdSet struct {
   242  	Bits [8]uint32
   243  }
   244  
   245  const (
   246  	SizeofIfMsghdr         = 0x98
   247  	SizeofIfData           = 0x88
   248  	SizeofIfaMsghdr        = 0x18
   249  	SizeofIfAnnounceMsghdr = 0x18
   250  	SizeofRtMsghdr         = 0x78
   251  	SizeofRtMetrics        = 0x50
   252  )
   253  
   254  type IfMsghdr struct {
   255  	Msglen    uint16
   256  	Version   uint8
   257  	Type      uint8
   258  	Addrs     int32
   259  	Flags     int32
   260  	Index     uint16
   261  	Pad_cgo_0 [2]byte
   262  	Data      IfData
   263  }
   264  
   265  type IfData struct {
   266  	Type       uint8
   267  	Addrlen    uint8
   268  	Hdrlen     uint8
   269  	Pad_cgo_0  [1]byte
   270  	Link_state int32
   271  	Mtu        uint64
   272  	Metric     uint64
   273  	Baudrate   uint64
   274  	Ipackets   uint64
   275  	Ierrors    uint64
   276  	Opackets   uint64
   277  	Oerrors    uint64
   278  	Collisions uint64
   279  	Ibytes     uint64
   280  	Obytes     uint64
   281  	Imcasts    uint64
   282  	Omcasts    uint64
   283  	Iqdrops    uint64
   284  	Noproto    uint64
   285  	Lastchange Timespec
   286  }
   287  
   288  type IfaMsghdr struct {
   289  	Msglen    uint16
   290  	Version   uint8
   291  	Type      uint8
   292  	Addrs     int32
   293  	Flags     int32
   294  	Metric    int32
   295  	Index     uint16
   296  	Pad_cgo_0 [6]byte
   297  }
   298  
   299  type IfAnnounceMsghdr struct {
   300  	Msglen  uint16
   301  	Version uint8
   302  	Type    uint8
   303  	Index   uint16
   304  	Name    [16]int8
   305  	What    uint16
   306  }
   307  
   308  type RtMsghdr struct {
   309  	Msglen    uint16
   310  	Version   uint8
   311  	Type      uint8
   312  	Index     uint16
   313  	Pad_cgo_0 [2]byte
   314  	Flags     int32
   315  	Addrs     int32
   316  	Pid       int32
   317  	Seq       int32
   318  	Errno     int32
   319  	Use       int32
   320  	Inits     int32
   321  	Pad_cgo_1 [4]byte
   322  	Rmx       RtMetrics
   323  }
   324  
   325  type RtMetrics struct {
   326  	Locks    uint64
   327  	Mtu      uint64
   328  	Hopcount uint64
   329  	Recvpipe uint64
   330  	Sendpipe uint64
   331  	Ssthresh uint64
   332  	Rtt      uint64
   333  	Rttvar   uint64
   334  	Expire   int64
   335  	Pksent   int64
   336  }
   337  
   338  type Mclpool [0]byte
   339  
   340  const (
   341  	SizeofBpfVersion = 0x4
   342  	SizeofBpfStat    = 0x80
   343  	SizeofBpfProgram = 0x8
   344  	SizeofBpfInsn    = 0x8
   345  	SizeofBpfHdr     = 0x14
   346  )
   347  
   348  type BpfVersion struct {
   349  	Major uint16
   350  	Minor uint16
   351  }
   352  
   353  type BpfStat struct {
   354  	Recv    uint64
   355  	Drop    uint64
   356  	Capt    uint64
   357  	Padding [13]uint64
   358  }
   359  
   360  type BpfProgram struct {
   361  	Len   uint32
   362  	Insns *BpfInsn
   363  }
   364  
   365  type BpfInsn struct {
   366  	Code uint16
   367  	Jt   uint8
   368  	Jf   uint8
   369  	K    uint32
   370  }
   371  
   372  type BpfHdr struct {
   373  	Tstamp    BpfTimeval
   374  	Caplen    uint32
   375  	Datalen   uint32
   376  	Hdrlen    uint16
   377  	Pad_cgo_0 [2]byte
   378  }
   379  
   380  type BpfTimeval struct {
   381  	Sec  int32
   382  	Usec int32
   383  }
   384  
   385  const (
   386  	_AT_FDCWD = -0x64
   387  )
   388  
   389  type Termios struct {
   390  	Iflag  uint32
   391  	Oflag  uint32
   392  	Cflag  uint32
   393  	Lflag  uint32
   394  	Cc     [20]uint8
   395  	Ispeed int32
   396  	Ospeed int32
   397  }
   398  
   399  type Sysctlnode struct {
   400  	Flags           uint32
   401  	Num             int32
   402  	Name            [32]int8
   403  	Ver             uint32
   404  	X__rsvd         uint32
   405  	Un              [16]byte
   406  	X_sysctl_size   [8]byte
   407  	X_sysctl_func   [8]byte
   408  	X_sysctl_parent [8]byte
   409  	X_sysctl_desc   [8]byte
   410  }
   411  
   412  type sigset struct {
   413  	X__bits [4]uint32
   414  }
   415  

View as plain text