github.com/fletavendor/sys@v0.0.0-20181107165924-66b7b1311ac8/unix/ztypes_openbsd_amd64.go (about)

     1  // cgo -godefs types_openbsd.go | go run mkpost.go
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  // +build amd64,openbsd
     5  
     6  package unix
     7  
     8  const (
     9  	SizeofPtr      = 0x8
    10  	SizeofShort    = 0x2
    11  	SizeofInt      = 0x4
    12  	SizeofLong     = 0x8
    13  	SizeofLongLong = 0x8
    14  )
    15  
    16  type (
    17  	_C_short     int16
    18  	_C_int       int32
    19  	_C_long      int64
    20  	_C_long_long int64
    21  )
    22  
    23  type Timespec struct {
    24  	Sec  int64
    25  	Nsec int64
    26  }
    27  
    28  type Timeval struct {
    29  	Sec  int64
    30  	Usec int64
    31  }
    32  
    33  type Rusage struct {
    34  	Utime    Timeval
    35  	Stime    Timeval
    36  	Maxrss   int64
    37  	Ixrss    int64
    38  	Idrss    int64
    39  	Isrss    int64
    40  	Minflt   int64
    41  	Majflt   int64
    42  	Nswap    int64
    43  	Inblock  int64
    44  	Oublock  int64
    45  	Msgsnd   int64
    46  	Msgrcv   int64
    47  	Nsignals int64
    48  	Nvcsw    int64
    49  	Nivcsw   int64
    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  	Mode    uint32
    61  	Dev     int32
    62  	Ino     uint64
    63  	Nlink   uint32
    64  	Uid     uint32
    65  	Gid     uint32
    66  	Rdev    int32
    67  	Atim    Timespec
    68  	Mtim    Timespec
    69  	Ctim    Timespec
    70  	Size    int64
    71  	Blocks  int64
    72  	Blksize int32
    73  	Flags   uint32
    74  	Gen     uint32
    75  	_       [4]byte
    76  	_       Timespec
    77  }
    78  
    79  type Statfs_t struct {
    80  	F_flags       uint32
    81  	F_bsize       uint32
    82  	F_iosize      uint32
    83  	_             [4]byte
    84  	F_blocks      uint64
    85  	F_bfree       uint64
    86  	F_bavail      int64
    87  	F_files       uint64
    88  	F_ffree       uint64
    89  	F_favail      int64
    90  	F_syncwrites  uint64
    91  	F_syncreads   uint64
    92  	F_asyncwrites uint64
    93  	F_asyncreads  uint64
    94  	F_fsid        Fsid
    95  	F_namemax     uint32
    96  	F_owner       uint32
    97  	F_ctime       uint64
    98  	F_fstypename  [16]int8
    99  	F_mntonname   [90]int8
   100  	F_mntfromname [90]int8
   101  	F_mntfromspec [90]int8
   102  	_             [2]byte
   103  	Mount_info    [160]byte
   104  }
   105  
   106  type Flock_t struct {
   107  	Start  int64
   108  	Len    int64
   109  	Pid    int32
   110  	Type   int16
   111  	Whence int16
   112  }
   113  
   114  type Dirent struct {
   115  	Fileno uint64
   116  	Off    int64
   117  	Reclen uint16
   118  	Type   uint8
   119  	Namlen uint8
   120  	_      [4]uint8
   121  	Name   [256]int8
   122  }
   123  
   124  type Fsid struct {
   125  	Val [2]int32
   126  }
   127  
   128  const (
   129  	PathMax = 0x400
   130  )
   131  
   132  type RawSockaddrInet4 struct {
   133  	Len    uint8
   134  	Family uint8
   135  	Port   uint16
   136  	Addr   [4]byte /* in_addr */
   137  	Zero   [8]int8
   138  }
   139  
   140  type RawSockaddrInet6 struct {
   141  	Len      uint8
   142  	Family   uint8
   143  	Port     uint16
   144  	Flowinfo uint32
   145  	Addr     [16]byte /* in6_addr */
   146  	Scope_id uint32
   147  }
   148  
   149  type RawSockaddrUnix struct {
   150  	Len    uint8
   151  	Family uint8
   152  	Path   [104]int8
   153  }
   154  
   155  type RawSockaddrDatalink struct {
   156  	Len    uint8
   157  	Family uint8
   158  	Index  uint16
   159  	Type   uint8
   160  	Nlen   uint8
   161  	Alen   uint8
   162  	Slen   uint8
   163  	Data   [24]int8
   164  }
   165  
   166  type RawSockaddr struct {
   167  	Len    uint8
   168  	Family uint8
   169  	Data   [14]int8
   170  }
   171  
   172  type RawSockaddrAny struct {
   173  	Addr RawSockaddr
   174  	Pad  [92]int8
   175  }
   176  
   177  type _Socklen uint32
   178  
   179  type Linger struct {
   180  	Onoff  int32
   181  	Linger int32
   182  }
   183  
   184  type Iovec struct {
   185  	Base *byte
   186  	Len  uint64
   187  }
   188  
   189  type IPMreq struct {
   190  	Multiaddr [4]byte /* in_addr */
   191  	Interface [4]byte /* in_addr */
   192  }
   193  
   194  type IPv6Mreq struct {
   195  	Multiaddr [16]byte /* in6_addr */
   196  	Interface uint32
   197  }
   198  
   199  type Msghdr struct {
   200  	Name       *byte
   201  	Namelen    uint32
   202  	_          [4]byte
   203  	Iov        *Iovec
   204  	Iovlen     uint32
   205  	_          [4]byte
   206  	Control    *byte
   207  	Controllen uint32
   208  	Flags      int32
   209  }
   210  
   211  type Cmsghdr struct {
   212  	Len   uint32
   213  	Level int32
   214  	Type  int32
   215  }
   216  
   217  type Inet6Pktinfo struct {
   218  	Addr    [16]byte /* in6_addr */
   219  	Ifindex uint32
   220  }
   221  
   222  type IPv6MTUInfo struct {
   223  	Addr RawSockaddrInet6
   224  	Mtu  uint32
   225  }
   226  
   227  type ICMPv6Filter struct {
   228  	Filt [8]uint32
   229  }
   230  
   231  const (
   232  	SizeofSockaddrInet4    = 0x10
   233  	SizeofSockaddrInet6    = 0x1c
   234  	SizeofSockaddrAny      = 0x6c
   235  	SizeofSockaddrUnix     = 0x6a
   236  	SizeofSockaddrDatalink = 0x20
   237  	SizeofLinger           = 0x8
   238  	SizeofIPMreq           = 0x8
   239  	SizeofIPv6Mreq         = 0x14
   240  	SizeofMsghdr           = 0x30
   241  	SizeofCmsghdr          = 0xc
   242  	SizeofInet6Pktinfo     = 0x14
   243  	SizeofIPv6MTUInfo      = 0x20
   244  	SizeofICMPv6Filter     = 0x20
   245  )
   246  
   247  const (
   248  	PTRACE_TRACEME = 0x0
   249  	PTRACE_CONT    = 0x7
   250  	PTRACE_KILL    = 0x8
   251  )
   252  
   253  type Kevent_t struct {
   254  	Ident  uint64
   255  	Filter int16
   256  	Flags  uint16
   257  	Fflags uint32
   258  	Data   int64
   259  	Udata  *byte
   260  }
   261  
   262  type FdSet struct {
   263  	Bits [32]uint32
   264  }
   265  
   266  const (
   267  	SizeofIfMsghdr         = 0xa8
   268  	SizeofIfData           = 0x90
   269  	SizeofIfaMsghdr        = 0x18
   270  	SizeofIfAnnounceMsghdr = 0x1a
   271  	SizeofRtMsghdr         = 0x60
   272  	SizeofRtMetrics        = 0x38
   273  )
   274  
   275  type IfMsghdr struct {
   276  	Msglen  uint16
   277  	Version uint8
   278  	Type    uint8
   279  	Hdrlen  uint16
   280  	Index   uint16
   281  	Tableid uint16
   282  	Pad1    uint8
   283  	Pad2    uint8
   284  	Addrs   int32
   285  	Flags   int32
   286  	Xflags  int32
   287  	Data    IfData
   288  }
   289  
   290  type IfData struct {
   291  	Type         uint8
   292  	Addrlen      uint8
   293  	Hdrlen       uint8
   294  	Link_state   uint8
   295  	Mtu          uint32
   296  	Metric       uint32
   297  	Rdomain      uint32
   298  	Baudrate     uint64
   299  	Ipackets     uint64
   300  	Ierrors      uint64
   301  	Opackets     uint64
   302  	Oerrors      uint64
   303  	Collisions   uint64
   304  	Ibytes       uint64
   305  	Obytes       uint64
   306  	Imcasts      uint64
   307  	Omcasts      uint64
   308  	Iqdrops      uint64
   309  	Oqdrops      uint64
   310  	Noproto      uint64
   311  	Capabilities uint32
   312  	_            [4]byte
   313  	Lastchange   Timeval
   314  }
   315  
   316  type IfaMsghdr struct {
   317  	Msglen  uint16
   318  	Version uint8
   319  	Type    uint8
   320  	Hdrlen  uint16
   321  	Index   uint16
   322  	Tableid uint16
   323  	Pad1    uint8
   324  	Pad2    uint8
   325  	Addrs   int32
   326  	Flags   int32
   327  	Metric  int32
   328  }
   329  
   330  type IfAnnounceMsghdr struct {
   331  	Msglen  uint16
   332  	Version uint8
   333  	Type    uint8
   334  	Hdrlen  uint16
   335  	Index   uint16
   336  	What    uint16
   337  	Name    [16]int8
   338  }
   339  
   340  type RtMsghdr struct {
   341  	Msglen   uint16
   342  	Version  uint8
   343  	Type     uint8
   344  	Hdrlen   uint16
   345  	Index    uint16
   346  	Tableid  uint16
   347  	Priority uint8
   348  	Mpls     uint8
   349  	Addrs    int32
   350  	Flags    int32
   351  	Fmask    int32
   352  	Pid      int32
   353  	Seq      int32
   354  	Errno    int32
   355  	Inits    uint32
   356  	Rmx      RtMetrics
   357  }
   358  
   359  type RtMetrics struct {
   360  	Pksent   uint64
   361  	Expire   int64
   362  	Locks    uint32
   363  	Mtu      uint32
   364  	Refcnt   uint32
   365  	Hopcount uint32
   366  	Recvpipe uint32
   367  	Sendpipe uint32
   368  	Ssthresh uint32
   369  	Rtt      uint32
   370  	Rttvar   uint32
   371  	Pad      uint32
   372  }
   373  
   374  type Mclpool struct{}
   375  
   376  const (
   377  	SizeofBpfVersion = 0x4
   378  	SizeofBpfStat    = 0x8
   379  	SizeofBpfProgram = 0x10
   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 uint32
   391  	Drop uint32
   392  }
   393  
   394  type BpfProgram struct {
   395  	Len   uint32
   396  	_     [4]byte
   397  	Insns *BpfInsn
   398  }
   399  
   400  type BpfInsn struct {
   401  	Code uint16
   402  	Jt   uint8
   403  	Jf   uint8
   404  	K    uint32
   405  }
   406  
   407  type BpfHdr struct {
   408  	Tstamp  BpfTimeval
   409  	Caplen  uint32
   410  	Datalen uint32
   411  	Hdrlen  uint16
   412  	_       [2]byte
   413  }
   414  
   415  type BpfTimeval struct {
   416  	Sec  uint32
   417  	Usec uint32
   418  }
   419  
   420  type Termios struct {
   421  	Iflag  uint32
   422  	Oflag  uint32
   423  	Cflag  uint32
   424  	Lflag  uint32
   425  	Cc     [20]uint8
   426  	Ispeed int32
   427  	Ospeed int32
   428  }
   429  
   430  type Winsize struct {
   431  	Row    uint16
   432  	Col    uint16
   433  	Xpixel uint16
   434  	Ypixel uint16
   435  }
   436  
   437  const (
   438  	AT_FDCWD            = -0x64
   439  	AT_SYMLINK_NOFOLLOW = 0x2
   440  )
   441  
   442  type PollFd struct {
   443  	Fd      int32
   444  	Events  int16
   445  	Revents int16
   446  }
   447  
   448  const (
   449  	POLLERR    = 0x8
   450  	POLLHUP    = 0x10
   451  	POLLIN     = 0x1
   452  	POLLNVAL   = 0x20
   453  	POLLOUT    = 0x4
   454  	POLLPRI    = 0x2
   455  	POLLRDBAND = 0x80
   456  	POLLRDNORM = 0x40
   457  	POLLWRBAND = 0x100
   458  	POLLWRNORM = 0x4
   459  )
   460  
   461  type Sigset_t uint32
   462  
   463  type Utsname struct {
   464  	Sysname  [256]byte
   465  	Nodename [256]byte
   466  	Release  [256]byte
   467  	Version  [256]byte
   468  	Machine  [256]byte
   469  }
   470  
   471  const SizeofUvmexp = 0x158
   472  
   473  type Uvmexp struct {
   474  	Pagesize           int32
   475  	Pagemask           int32
   476  	Pageshift          int32
   477  	Npages             int32
   478  	Free               int32
   479  	Active             int32
   480  	Inactive           int32
   481  	Paging             int32
   482  	Wired              int32
   483  	Zeropages          int32
   484  	Reserve_pagedaemon int32
   485  	Reserve_kernel     int32
   486  	Anonpages          int32
   487  	Vnodepages         int32
   488  	Vtextpages         int32
   489  	Freemin            int32
   490  	Freetarg           int32
   491  	Inactarg           int32
   492  	Wiredmax           int32
   493  	Anonmin            int32
   494  	Vtextmin           int32
   495  	Vnodemin           int32
   496  	Anonminpct         int32
   497  	Vtextminpct        int32
   498  	Vnodeminpct        int32
   499  	Nswapdev           int32
   500  	Swpages            int32
   501  	Swpginuse          int32
   502  	Swpgonly           int32
   503  	Nswget             int32
   504  	Nanon              int32
   505  	Nanonneeded        int32
   506  	Nfreeanon          int32
   507  	Faults             int32
   508  	Traps              int32
   509  	Intrs              int32
   510  	Swtch              int32
   511  	Softs              int32
   512  	Syscalls           int32
   513  	Pageins            int32
   514  	Obsolete_swapins   int32
   515  	Obsolete_swapouts  int32
   516  	Pgswapin           int32
   517  	Pgswapout          int32
   518  	Forks              int32
   519  	Forks_ppwait       int32
   520  	Forks_sharevm      int32
   521  	Pga_zerohit        int32
   522  	Pga_zeromiss       int32
   523  	Zeroaborts         int32
   524  	Fltnoram           int32
   525  	Fltnoanon          int32
   526  	Fltnoamap          int32
   527  	Fltpgwait          int32
   528  	Fltpgrele          int32
   529  	Fltrelck           int32
   530  	Fltrelckok         int32
   531  	Fltanget           int32
   532  	Fltanretry         int32
   533  	Fltamcopy          int32
   534  	Fltnamap           int32
   535  	Fltnomap           int32
   536  	Fltlget            int32
   537  	Fltget             int32
   538  	Flt_anon           int32
   539  	Flt_acow           int32
   540  	Flt_obj            int32
   541  	Flt_prcopy         int32
   542  	Flt_przero         int32
   543  	Pdwoke             int32
   544  	Pdrevs             int32
   545  	Pdswout            int32
   546  	Pdfreed            int32
   547  	Pdscans            int32
   548  	Pdanscan           int32
   549  	Pdobscan           int32
   550  	Pdreact            int32
   551  	Pdbusy             int32
   552  	Pdpageouts         int32
   553  	Pdpending          int32
   554  	Pddeact            int32
   555  	Pdreanon           int32
   556  	Pdrevnode          int32
   557  	Pdrevtext          int32
   558  	Fpswtch            int32
   559  	Kmapent            int32
   560  }