Source file src/syscall/ztypes_netbsd_386.go

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

View as plain text