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