github.com/etecs-ru/go-sys-wineventlog@v0.0.0-20210227233244-4c3abb794018/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  // +build 386,netbsd
     6  
     7  package unix
     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  	Atim    Timespec
    69  	Mtim    Timespec
    70  	Ctim    Timespec
    71  	Btim    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 Statvfs_t struct {
    83  	Flag        uint32
    84  	Bsize       uint32
    85  	Frsize      uint32
    86  	Iosize      uint32
    87  	Blocks      uint64
    88  	Bfree       uint64
    89  	Bavail      uint64
    90  	Bresvd      uint64
    91  	Files       uint64
    92  	Ffree       uint64
    93  	Favail      uint64
    94  	Fresvd      uint64
    95  	Syncreads   uint64
    96  	Syncwrites  uint64
    97  	Asyncreads  uint64
    98  	Asyncwrites uint64
    99  	Fsidx       Fsid
   100  	Fsid        uint32
   101  	Namemax     uint32
   102  	Owner       uint32
   103  	Spare       [4]uint32
   104  	Fstypename  [32]byte
   105  	Mntonname   [1024]byte
   106  	Mntfromname [1024]byte
   107  }
   108  
   109  type Flock_t struct {
   110  	Start  int64
   111  	Len    int64
   112  	Pid    int32
   113  	Type   int16
   114  	Whence int16
   115  }
   116  
   117  type Dirent struct {
   118  	Fileno    uint64
   119  	Reclen    uint16
   120  	Namlen    uint16
   121  	Type      uint8
   122  	Name      [512]int8
   123  	Pad_cgo_0 [3]byte
   124  }
   125  
   126  type Fsid struct {
   127  	X__fsid_val [2]int32
   128  }
   129  
   130  const (
   131  	PathMax = 0x400
   132  )
   133  
   134  const (
   135  	ST_WAIT   = 0x1
   136  	ST_NOWAIT = 0x2
   137  )
   138  
   139  const (
   140  	FADV_NORMAL     = 0x0
   141  	FADV_RANDOM     = 0x1
   142  	FADV_SEQUENTIAL = 0x2
   143  	FADV_WILLNEED   = 0x3
   144  	FADV_DONTNEED   = 0x4
   145  	FADV_NOREUSE    = 0x5
   146  )
   147  
   148  type RawSockaddrInet4 struct {
   149  	Len    uint8
   150  	Family uint8
   151  	Port   uint16
   152  	Addr   [4]byte /* in_addr */
   153  	Zero   [8]int8
   154  }
   155  
   156  type RawSockaddrInet6 struct {
   157  	Len      uint8
   158  	Family   uint8
   159  	Port     uint16
   160  	Flowinfo uint32
   161  	Addr     [16]byte /* in6_addr */
   162  	Scope_id uint32
   163  }
   164  
   165  type RawSockaddrUnix struct {
   166  	Len    uint8
   167  	Family uint8
   168  	Path   [104]int8
   169  }
   170  
   171  type RawSockaddrDatalink struct {
   172  	Len    uint8
   173  	Family uint8
   174  	Index  uint16
   175  	Type   uint8
   176  	Nlen   uint8
   177  	Alen   uint8
   178  	Slen   uint8
   179  	Data   [12]int8
   180  }
   181  
   182  type RawSockaddr struct {
   183  	Len    uint8
   184  	Family uint8
   185  	Data   [14]int8
   186  }
   187  
   188  type RawSockaddrAny struct {
   189  	Addr RawSockaddr
   190  	Pad  [92]int8
   191  }
   192  
   193  type _Socklen uint32
   194  
   195  type Linger struct {
   196  	Onoff  int32
   197  	Linger int32
   198  }
   199  
   200  type Iovec struct {
   201  	Base *byte
   202  	Len  uint32
   203  }
   204  
   205  type IPMreq struct {
   206  	Multiaddr [4]byte /* in_addr */
   207  	Interface [4]byte /* in_addr */
   208  }
   209  
   210  type IPv6Mreq struct {
   211  	Multiaddr [16]byte /* in6_addr */
   212  	Interface uint32
   213  }
   214  
   215  type Msghdr struct {
   216  	Name       *byte
   217  	Namelen    uint32
   218  	Iov        *Iovec
   219  	Iovlen     int32
   220  	Control    *byte
   221  	Controllen uint32
   222  	Flags      int32
   223  }
   224  
   225  type Cmsghdr struct {
   226  	Len   uint32
   227  	Level int32
   228  	Type  int32
   229  }
   230  
   231  type Inet6Pktinfo struct {
   232  	Addr    [16]byte /* in6_addr */
   233  	Ifindex uint32
   234  }
   235  
   236  type IPv6MTUInfo struct {
   237  	Addr RawSockaddrInet6
   238  	Mtu  uint32
   239  }
   240  
   241  type ICMPv6Filter struct {
   242  	Filt [8]uint32
   243  }
   244  
   245  const (
   246  	SizeofSockaddrInet4    = 0x10
   247  	SizeofSockaddrInet6    = 0x1c
   248  	SizeofSockaddrAny      = 0x6c
   249  	SizeofSockaddrUnix     = 0x6a
   250  	SizeofSockaddrDatalink = 0x14
   251  	SizeofLinger           = 0x8
   252  	SizeofIovec            = 0x8
   253  	SizeofIPMreq           = 0x8
   254  	SizeofIPv6Mreq         = 0x14
   255  	SizeofMsghdr           = 0x1c
   256  	SizeofCmsghdr          = 0xc
   257  	SizeofInet6Pktinfo     = 0x14
   258  	SizeofIPv6MTUInfo      = 0x20
   259  	SizeofICMPv6Filter     = 0x20
   260  )
   261  
   262  const (
   263  	PTRACE_TRACEME = 0x0
   264  	PTRACE_CONT    = 0x7
   265  	PTRACE_KILL    = 0x8
   266  )
   267  
   268  type Kevent_t struct {
   269  	Ident  uint32
   270  	Filter uint32
   271  	Flags  uint32
   272  	Fflags uint32
   273  	Data   int64
   274  	Udata  int32
   275  }
   276  
   277  type FdSet struct {
   278  	Bits [8]uint32
   279  }
   280  
   281  const (
   282  	SizeofIfMsghdr         = 0x98
   283  	SizeofIfData           = 0x84
   284  	SizeofIfaMsghdr        = 0x18
   285  	SizeofIfAnnounceMsghdr = 0x18
   286  	SizeofRtMsghdr         = 0x78
   287  	SizeofRtMetrics        = 0x50
   288  )
   289  
   290  type IfMsghdr struct {
   291  	Msglen    uint16
   292  	Version   uint8
   293  	Type      uint8
   294  	Addrs     int32
   295  	Flags     int32
   296  	Index     uint16
   297  	Pad_cgo_0 [2]byte
   298  	Data      IfData
   299  	Pad_cgo_1 [4]byte
   300  }
   301  
   302  type IfData struct {
   303  	Type       uint8
   304  	Addrlen    uint8
   305  	Hdrlen     uint8
   306  	Pad_cgo_0  [1]byte
   307  	Link_state int32
   308  	Mtu        uint64
   309  	Metric     uint64
   310  	Baudrate   uint64
   311  	Ipackets   uint64
   312  	Ierrors    uint64
   313  	Opackets   uint64
   314  	Oerrors    uint64
   315  	Collisions uint64
   316  	Ibytes     uint64
   317  	Obytes     uint64
   318  	Imcasts    uint64
   319  	Omcasts    uint64
   320  	Iqdrops    uint64
   321  	Noproto    uint64
   322  	Lastchange Timespec
   323  }
   324  
   325  type IfaMsghdr struct {
   326  	Msglen    uint16
   327  	Version   uint8
   328  	Type      uint8
   329  	Addrs     int32
   330  	Flags     int32
   331  	Metric    int32
   332  	Index     uint16
   333  	Pad_cgo_0 [6]byte
   334  }
   335  
   336  type IfAnnounceMsghdr struct {
   337  	Msglen  uint16
   338  	Version uint8
   339  	Type    uint8
   340  	Index   uint16
   341  	Name    [16]int8
   342  	What    uint16
   343  }
   344  
   345  type RtMsghdr struct {
   346  	Msglen    uint16
   347  	Version   uint8
   348  	Type      uint8
   349  	Index     uint16
   350  	Pad_cgo_0 [2]byte
   351  	Flags     int32
   352  	Addrs     int32
   353  	Pid       int32
   354  	Seq       int32
   355  	Errno     int32
   356  	Use       int32
   357  	Inits     int32
   358  	Pad_cgo_1 [4]byte
   359  	Rmx       RtMetrics
   360  }
   361  
   362  type RtMetrics struct {
   363  	Locks    uint64
   364  	Mtu      uint64
   365  	Hopcount uint64
   366  	Recvpipe uint64
   367  	Sendpipe uint64
   368  	Ssthresh uint64
   369  	Rtt      uint64
   370  	Rttvar   uint64
   371  	Expire   int64
   372  	Pksent   int64
   373  }
   374  
   375  type Mclpool [0]byte
   376  
   377  const (
   378  	SizeofBpfVersion = 0x4
   379  	SizeofBpfStat    = 0x80
   380  	SizeofBpfProgram = 0x8
   381  	SizeofBpfInsn    = 0x8
   382  	SizeofBpfHdr     = 0x14
   383  )
   384  
   385  type BpfVersion struct {
   386  	Major uint16
   387  	Minor uint16
   388  }
   389  
   390  type BpfStat struct {
   391  	Recv    uint64
   392  	Drop    uint64
   393  	Capt    uint64
   394  	Padding [13]uint64
   395  }
   396  
   397  type BpfProgram struct {
   398  	Len   uint32
   399  	Insns *BpfInsn
   400  }
   401  
   402  type BpfInsn struct {
   403  	Code uint16
   404  	Jt   uint8
   405  	Jf   uint8
   406  	K    uint32
   407  }
   408  
   409  type BpfHdr struct {
   410  	Tstamp    BpfTimeval
   411  	Caplen    uint32
   412  	Datalen   uint32
   413  	Hdrlen    uint16
   414  	Pad_cgo_0 [2]byte
   415  }
   416  
   417  type BpfTimeval struct {
   418  	Sec  int32
   419  	Usec int32
   420  }
   421  
   422  type Termios struct {
   423  	Iflag  uint32
   424  	Oflag  uint32
   425  	Cflag  uint32
   426  	Lflag  uint32
   427  	Cc     [20]uint8
   428  	Ispeed int32
   429  	Ospeed int32
   430  }
   431  
   432  type Winsize struct {
   433  	Row    uint16
   434  	Col    uint16
   435  	Xpixel uint16
   436  	Ypixel uint16
   437  }
   438  
   439  type Ptmget struct {
   440  	Cfd int32
   441  	Sfd int32
   442  	Cn  [1024]byte
   443  	Sn  [1024]byte
   444  }
   445  
   446  const (
   447  	AT_FDCWD            = -0x64
   448  	AT_SYMLINK_FOLLOW   = 0x400
   449  	AT_SYMLINK_NOFOLLOW = 0x200
   450  )
   451  
   452  type PollFd struct {
   453  	Fd      int32
   454  	Events  int16
   455  	Revents int16
   456  }
   457  
   458  const (
   459  	POLLERR    = 0x8
   460  	POLLHUP    = 0x10
   461  	POLLIN     = 0x1
   462  	POLLNVAL   = 0x20
   463  	POLLOUT    = 0x4
   464  	POLLPRI    = 0x2
   465  	POLLRDBAND = 0x80
   466  	POLLRDNORM = 0x40
   467  	POLLWRBAND = 0x100
   468  	POLLWRNORM = 0x4
   469  )
   470  
   471  type Sysctlnode struct {
   472  	Flags           uint32
   473  	Num             int32
   474  	Name            [32]int8
   475  	Ver             uint32
   476  	X__rsvd         uint32
   477  	Un              [16]byte
   478  	X_sysctl_size   [8]byte
   479  	X_sysctl_func   [8]byte
   480  	X_sysctl_parent [8]byte
   481  	X_sysctl_desc   [8]byte
   482  }
   483  
   484  type Utsname struct {
   485  	Sysname  [256]byte
   486  	Nodename [256]byte
   487  	Release  [256]byte
   488  	Version  [256]byte
   489  	Machine  [256]byte
   490  }
   491  
   492  const SizeofClockinfo = 0x14
   493  
   494  type Clockinfo struct {
   495  	Hz      int32
   496  	Tick    int32
   497  	Tickadj int32
   498  	Stathz  int32
   499  	Profhz  int32
   500  }