Black Lives Matter. Support the Equal Justice Initiative.

Source file src/syscall/ztypes_netbsd_386.go

Documentation: syscall

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

View as plain text