golang.org/x/sys@v0.20.1-0.20240517151509-673e0f94c16d/unix/ztypes_netbsd_386.go (about)

     1  // cgo -godefs types_netbsd.go | go run mkpost.go
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  //go:build 386 && netbsd
     5  
     6  package unix
     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  }
    27  
    28  type Timeval struct {
    29  	Sec  int64
    30  	Usec int32
    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  type Stat_t struct {
    60  	Dev     uint64
    61  	Mode    uint32
    62  	Ino     uint64
    63  	Nlink   uint32
    64  	Uid     uint32
    65  	Gid     uint32
    66  	Rdev    uint64
    67  	Atim    Timespec
    68  	Mtim    Timespec
    69  	Ctim    Timespec
    70  	Btim    Timespec
    71  	Size    int64
    72  	Blocks  int64
    73  	Blksize uint32
    74  	Flags   uint32
    75  	Gen     uint32
    76  	Spare   [2]uint32
    77  }
    78  
    79  type Statfs_t [0]byte
    80  
    81  type Statvfs_t struct {
    82  	Flag        uint32
    83  	Bsize       uint32
    84  	Frsize      uint32
    85  	Iosize      uint32
    86  	Blocks      uint64
    87  	Bfree       uint64
    88  	Bavail      uint64
    89  	Bresvd      uint64
    90  	Files       uint64
    91  	Ffree       uint64
    92  	Favail      uint64
    93  	Fresvd      uint64
    94  	Syncreads   uint64
    95  	Syncwrites  uint64
    96  	Asyncreads  uint64
    97  	Asyncwrites uint64
    98  	Fsidx       Fsid
    99  	Fsid        uint32
   100  	Namemax     uint32
   101  	Owner       uint32
   102  	Spare       [4]uint32
   103  	Fstypename  [32]byte
   104  	Mntonname   [1024]byte
   105  	Mntfromname [1024]byte
   106  }
   107  
   108  type Flock_t struct {
   109  	Start  int64
   110  	Len    int64
   111  	Pid    int32
   112  	Type   int16
   113  	Whence int16
   114  }
   115  
   116  type Dirent struct {
   117  	Fileno    uint64
   118  	Reclen    uint16
   119  	Namlen    uint16
   120  	Type      uint8
   121  	Name      [512]int8
   122  	Pad_cgo_0 [3]byte
   123  }
   124  
   125  type Fsid struct {
   126  	X__fsid_val [2]int32
   127  }
   128  
   129  const (
   130  	PathMax = 0x400
   131  )
   132  
   133  const (
   134  	ST_WAIT   = 0x1
   135  	ST_NOWAIT = 0x2
   136  )
   137  
   138  const (
   139  	FADV_NORMAL     = 0x0
   140  	FADV_RANDOM     = 0x1
   141  	FADV_SEQUENTIAL = 0x2
   142  	FADV_WILLNEED   = 0x3
   143  	FADV_DONTNEED   = 0x4
   144  	FADV_NOREUSE    = 0x5
   145  )
   146  
   147  type RawSockaddrInet4 struct {
   148  	Len    uint8
   149  	Family uint8
   150  	Port   uint16
   151  	Addr   [4]byte /* in_addr */
   152  	Zero   [8]int8
   153  }
   154  
   155  type RawSockaddrInet6 struct {
   156  	Len      uint8
   157  	Family   uint8
   158  	Port     uint16
   159  	Flowinfo uint32
   160  	Addr     [16]byte /* in6_addr */
   161  	Scope_id uint32
   162  }
   163  
   164  type RawSockaddrUnix struct {
   165  	Len    uint8
   166  	Family uint8
   167  	Path   [104]int8
   168  }
   169  
   170  type RawSockaddrDatalink struct {
   171  	Len    uint8
   172  	Family uint8
   173  	Index  uint16
   174  	Type   uint8
   175  	Nlen   uint8
   176  	Alen   uint8
   177  	Slen   uint8
   178  	Data   [12]int8
   179  }
   180  
   181  type RawSockaddr struct {
   182  	Len    uint8
   183  	Family uint8
   184  	Data   [14]int8
   185  }
   186  
   187  type RawSockaddrAny struct {
   188  	Addr RawSockaddr
   189  	Pad  [92]int8
   190  }
   191  
   192  type _Socklen uint32
   193  
   194  type Linger struct {
   195  	Onoff  int32
   196  	Linger int32
   197  }
   198  
   199  type Iovec struct {
   200  	Base *byte
   201  	Len  uint32
   202  }
   203  
   204  type IPMreq struct {
   205  	Multiaddr [4]byte /* in_addr */
   206  	Interface [4]byte /* in_addr */
   207  }
   208  
   209  type IPv6Mreq struct {
   210  	Multiaddr [16]byte /* in6_addr */
   211  	Interface uint32
   212  }
   213  
   214  type Msghdr struct {
   215  	Name       *byte
   216  	Namelen    uint32
   217  	Iov        *Iovec
   218  	Iovlen     int32
   219  	Control    *byte
   220  	Controllen uint32
   221  	Flags      int32
   222  }
   223  
   224  type Cmsghdr struct {
   225  	Len   uint32
   226  	Level int32
   227  	Type  int32
   228  }
   229  
   230  type Inet6Pktinfo struct {
   231  	Addr    [16]byte /* in6_addr */
   232  	Ifindex uint32
   233  }
   234  
   235  type IPv6MTUInfo struct {
   236  	Addr RawSockaddrInet6
   237  	Mtu  uint32
   238  }
   239  
   240  type ICMPv6Filter struct {
   241  	Filt [8]uint32
   242  }
   243  
   244  const (
   245  	SizeofSockaddrInet4    = 0x10
   246  	SizeofSockaddrInet6    = 0x1c
   247  	SizeofSockaddrAny      = 0x6c
   248  	SizeofSockaddrUnix     = 0x6a
   249  	SizeofSockaddrDatalink = 0x14
   250  	SizeofLinger           = 0x8
   251  	SizeofIovec            = 0x8
   252  	SizeofIPMreq           = 0x8
   253  	SizeofIPv6Mreq         = 0x14
   254  	SizeofMsghdr           = 0x1c
   255  	SizeofCmsghdr          = 0xc
   256  	SizeofInet6Pktinfo     = 0x14
   257  	SizeofIPv6MTUInfo      = 0x20
   258  	SizeofICMPv6Filter     = 0x20
   259  )
   260  
   261  const (
   262  	PTRACE_TRACEME = 0x0
   263  	PTRACE_CONT    = 0x7
   264  	PTRACE_KILL    = 0x8
   265  )
   266  
   267  type Kevent_t struct {
   268  	Ident  uint32
   269  	Filter uint32
   270  	Flags  uint32
   271  	Fflags uint32
   272  	Data   int64
   273  	Udata  int32
   274  }
   275  
   276  type FdSet struct {
   277  	Bits [8]uint32
   278  }
   279  
   280  const (
   281  	SizeofIfMsghdr         = 0x98
   282  	SizeofIfData           = 0x84
   283  	SizeofIfaMsghdr        = 0x18
   284  	SizeofIfAnnounceMsghdr = 0x18
   285  	SizeofRtMsghdr         = 0x78
   286  	SizeofRtMetrics        = 0x50
   287  )
   288  
   289  type IfMsghdr struct {
   290  	Msglen    uint16
   291  	Version   uint8
   292  	Type      uint8
   293  	Addrs     int32
   294  	Flags     int32
   295  	Index     uint16
   296  	Pad_cgo_0 [2]byte
   297  	Data      IfData
   298  	Pad_cgo_1 [4]byte
   299  }
   300  
   301  type IfData struct {
   302  	Type       uint8
   303  	Addrlen    uint8
   304  	Hdrlen     uint8
   305  	Pad_cgo_0  [1]byte
   306  	Link_state int32
   307  	Mtu        uint64
   308  	Metric     uint64
   309  	Baudrate   uint64
   310  	Ipackets   uint64
   311  	Ierrors    uint64
   312  	Opackets   uint64
   313  	Oerrors    uint64
   314  	Collisions uint64
   315  	Ibytes     uint64
   316  	Obytes     uint64
   317  	Imcasts    uint64
   318  	Omcasts    uint64
   319  	Iqdrops    uint64
   320  	Noproto    uint64
   321  	Lastchange Timespec
   322  }
   323  
   324  type IfaMsghdr struct {
   325  	Msglen    uint16
   326  	Version   uint8
   327  	Type      uint8
   328  	Addrs     int32
   329  	Flags     int32
   330  	Metric    int32
   331  	Index     uint16
   332  	Pad_cgo_0 [6]byte
   333  }
   334  
   335  type IfAnnounceMsghdr struct {
   336  	Msglen  uint16
   337  	Version uint8
   338  	Type    uint8
   339  	Index   uint16
   340  	Name    [16]int8
   341  	What    uint16
   342  }
   343  
   344  type RtMsghdr struct {
   345  	Msglen    uint16
   346  	Version   uint8
   347  	Type      uint8
   348  	Index     uint16
   349  	Pad_cgo_0 [2]byte
   350  	Flags     int32
   351  	Addrs     int32
   352  	Pid       int32
   353  	Seq       int32
   354  	Errno     int32
   355  	Use       int32
   356  	Inits     int32
   357  	Pad_cgo_1 [4]byte
   358  	Rmx       RtMetrics
   359  }
   360  
   361  type RtMetrics struct {
   362  	Locks    uint64
   363  	Mtu      uint64
   364  	Hopcount uint64
   365  	Recvpipe uint64
   366  	Sendpipe uint64
   367  	Ssthresh uint64
   368  	Rtt      uint64
   369  	Rttvar   uint64
   370  	Expire   int64
   371  	Pksent   int64
   372  }
   373  
   374  type Mclpool [0]byte
   375  
   376  const (
   377  	SizeofBpfVersion = 0x4
   378  	SizeofBpfStat    = 0x80
   379  	SizeofBpfProgram = 0x8
   380  	SizeofBpfInsn    = 0x8
   381  	SizeofBpfHdr     = 0x14
   382  )
   383  
   384  type BpfVersion struct {
   385  	Major uint16
   386  	Minor uint16
   387  }
   388  
   389  type BpfStat struct {
   390  	Recv    uint64
   391  	Drop    uint64
   392  	Capt    uint64
   393  	Padding [13]uint64
   394  }
   395  
   396  type BpfProgram struct {
   397  	Len   uint32
   398  	Insns *BpfInsn
   399  }
   400  
   401  type BpfInsn struct {
   402  	Code uint16
   403  	Jt   uint8
   404  	Jf   uint8
   405  	K    uint32
   406  }
   407  
   408  type BpfHdr struct {
   409  	Tstamp    BpfTimeval
   410  	Caplen    uint32
   411  	Datalen   uint32
   412  	Hdrlen    uint16
   413  	Pad_cgo_0 [2]byte
   414  }
   415  
   416  type BpfTimeval struct {
   417  	Sec  int32
   418  	Usec int32
   419  }
   420  
   421  type Termios struct {
   422  	Iflag  uint32
   423  	Oflag  uint32
   424  	Cflag  uint32
   425  	Lflag  uint32
   426  	Cc     [20]uint8
   427  	Ispeed int32
   428  	Ospeed int32
   429  }
   430  
   431  type Winsize struct {
   432  	Row    uint16
   433  	Col    uint16
   434  	Xpixel uint16
   435  	Ypixel uint16
   436  }
   437  
   438  type Ptmget struct {
   439  	Cfd int32
   440  	Sfd int32
   441  	Cn  [1024]byte
   442  	Sn  [1024]byte
   443  }
   444  
   445  const (
   446  	AT_FDCWD            = -0x64
   447  	AT_EACCESS          = 0x100
   448  	AT_SYMLINK_NOFOLLOW = 0x200
   449  	AT_SYMLINK_FOLLOW   = 0x400
   450  	AT_REMOVEDIR        = 0x800
   451  )
   452  
   453  type PollFd struct {
   454  	Fd      int32
   455  	Events  int16
   456  	Revents int16
   457  }
   458  
   459  const (
   460  	POLLERR    = 0x8
   461  	POLLHUP    = 0x10
   462  	POLLIN     = 0x1
   463  	POLLNVAL   = 0x20
   464  	POLLOUT    = 0x4
   465  	POLLPRI    = 0x2
   466  	POLLRDBAND = 0x80
   467  	POLLRDNORM = 0x40
   468  	POLLWRBAND = 0x100
   469  	POLLWRNORM = 0x4
   470  )
   471  
   472  type Sysctlnode struct {
   473  	Flags           uint32
   474  	Num             int32
   475  	Name            [32]int8
   476  	Ver             uint32
   477  	X__rsvd         uint32
   478  	Un              [16]byte
   479  	X_sysctl_size   [8]byte
   480  	X_sysctl_func   [8]byte
   481  	X_sysctl_parent [8]byte
   482  	X_sysctl_desc   [8]byte
   483  }
   484  
   485  type Utsname struct {
   486  	Sysname  [256]byte
   487  	Nodename [256]byte
   488  	Release  [256]byte
   489  	Version  [256]byte
   490  	Machine  [256]byte
   491  }
   492  
   493  const SizeofUvmexp = 0x278
   494  
   495  type Uvmexp struct {
   496  	Pagesize           int64
   497  	Pagemask           int64
   498  	Pageshift          int64
   499  	Npages             int64
   500  	Free               int64
   501  	Active             int64
   502  	Inactive           int64
   503  	Paging             int64
   504  	Wired              int64
   505  	Zeropages          int64
   506  	Reserve_pagedaemon int64
   507  	Reserve_kernel     int64
   508  	Freemin            int64
   509  	Freetarg           int64
   510  	Inactarg           int64
   511  	Wiredmax           int64
   512  	Nswapdev           int64
   513  	Swpages            int64
   514  	Swpginuse          int64
   515  	Swpgonly           int64
   516  	Nswget             int64
   517  	Unused1            int64
   518  	Cpuhit             int64
   519  	Cpumiss            int64
   520  	Faults             int64
   521  	Traps              int64
   522  	Intrs              int64
   523  	Swtch              int64
   524  	Softs              int64
   525  	Syscalls           int64
   526  	Pageins            int64
   527  	Swapins            int64
   528  	Swapouts           int64
   529  	Pgswapin           int64
   530  	Pgswapout          int64
   531  	Forks              int64
   532  	Forks_ppwait       int64
   533  	Forks_sharevm      int64
   534  	Pga_zerohit        int64
   535  	Pga_zeromiss       int64
   536  	Zeroaborts         int64
   537  	Fltnoram           int64
   538  	Fltnoanon          int64
   539  	Fltpgwait          int64
   540  	Fltpgrele          int64
   541  	Fltrelck           int64
   542  	Fltrelckok         int64
   543  	Fltanget           int64
   544  	Fltanretry         int64
   545  	Fltamcopy          int64
   546  	Fltnamap           int64
   547  	Fltnomap           int64
   548  	Fltlget            int64
   549  	Fltget             int64
   550  	Flt_anon           int64
   551  	Flt_acow           int64
   552  	Flt_obj            int64
   553  	Flt_prcopy         int64
   554  	Flt_przero         int64
   555  	Pdwoke             int64
   556  	Pdrevs             int64
   557  	Unused4            int64
   558  	Pdfreed            int64
   559  	Pdscans            int64
   560  	Pdanscan           int64
   561  	Pdobscan           int64
   562  	Pdreact            int64
   563  	Pdbusy             int64
   564  	Pdpageouts         int64
   565  	Pdpending          int64
   566  	Pddeact            int64
   567  	Anonpages          int64
   568  	Filepages          int64
   569  	Execpages          int64
   570  	Colorhit           int64
   571  	Colormiss          int64
   572  	Ncolors            int64
   573  	Bootpages          int64
   574  	Poolpages          int64
   575  }
   576  
   577  const SizeofClockinfo = 0x14
   578  
   579  type Clockinfo struct {
   580  	Hz      int32
   581  	Tick    int32
   582  	Tickadj int32
   583  	Stathz  int32
   584  	Profhz  int32
   585  }