github.com/alexis81/domosgo@v0.0.0-20191016125037-5aee90a434af/Domos/src/golang.org/x/sys/unix/ztypes_linux_mips64.go (about)

     1  // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  // +build mips64,linux
     5  
     6  package unix
     7  
     8  const (
     9  	sizeofPtr      = 0x8
    10  	sizeofShort    = 0x2
    11  	sizeofInt      = 0x4
    12  	sizeofLong     = 0x8
    13  	sizeofLongLong = 0x8
    14  	PathMax        = 0x1000
    15  )
    16  
    17  type (
    18  	_C_short     int16
    19  	_C_int       int32
    20  	_C_long      int64
    21  	_C_long_long int64
    22  )
    23  
    24  type Timespec struct {
    25  	Sec  int64
    26  	Nsec int64
    27  }
    28  
    29  type Timeval struct {
    30  	Sec  int64
    31  	Usec int64
    32  }
    33  
    34  type Timex struct {
    35  	Modes     uint32
    36  	_         [4]byte
    37  	Offset    int64
    38  	Freq      int64
    39  	Maxerror  int64
    40  	Esterror  int64
    41  	Status    int32
    42  	_         [4]byte
    43  	Constant  int64
    44  	Precision int64
    45  	Tolerance int64
    46  	Time      Timeval
    47  	Tick      int64
    48  	Ppsfreq   int64
    49  	Jitter    int64
    50  	Shift     int32
    51  	_         [4]byte
    52  	Stabil    int64
    53  	Jitcnt    int64
    54  	Calcnt    int64
    55  	Errcnt    int64
    56  	Stbcnt    int64
    57  	Tai       int32
    58  	_         [44]byte
    59  }
    60  
    61  type Time_t int64
    62  
    63  type Tms struct {
    64  	Utime  int64
    65  	Stime  int64
    66  	Cutime int64
    67  	Cstime int64
    68  }
    69  
    70  type Utimbuf struct {
    71  	Actime  int64
    72  	Modtime int64
    73  }
    74  
    75  type Rusage struct {
    76  	Utime    Timeval
    77  	Stime    Timeval
    78  	Maxrss   int64
    79  	Ixrss    int64
    80  	Idrss    int64
    81  	Isrss    int64
    82  	Minflt   int64
    83  	Majflt   int64
    84  	Nswap    int64
    85  	Inblock  int64
    86  	Oublock  int64
    87  	Msgsnd   int64
    88  	Msgrcv   int64
    89  	Nsignals int64
    90  	Nvcsw    int64
    91  	Nivcsw   int64
    92  }
    93  
    94  type Rlimit struct {
    95  	Cur uint64
    96  	Max uint64
    97  }
    98  
    99  type _Gid_t uint32
   100  
   101  type Stat_t struct {
   102  	Dev     uint32
   103  	Pad1    [3]uint32
   104  	Ino     uint64
   105  	Mode    uint32
   106  	Nlink   uint32
   107  	Uid     uint32
   108  	Gid     uint32
   109  	Rdev    uint32
   110  	Pad2    [3]uint32
   111  	Size    int64
   112  	Atim    Timespec
   113  	Mtim    Timespec
   114  	Ctim    Timespec
   115  	Blksize uint32
   116  	Pad4    uint32
   117  	Blocks  int64
   118  }
   119  
   120  type Statfs_t struct {
   121  	Type    int64
   122  	Bsize   int64
   123  	Frsize  int64
   124  	Blocks  uint64
   125  	Bfree   uint64
   126  	Files   uint64
   127  	Ffree   uint64
   128  	Bavail  uint64
   129  	Fsid    Fsid
   130  	Namelen int64
   131  	Flags   int64
   132  	Spare   [5]int64
   133  }
   134  
   135  type StatxTimestamp struct {
   136  	Sec         int64
   137  	Nsec        uint32
   138  	X__reserved int32
   139  }
   140  
   141  type Statx_t struct {
   142  	Mask            uint32
   143  	Blksize         uint32
   144  	Attributes      uint64
   145  	Nlink           uint32
   146  	Uid             uint32
   147  	Gid             uint32
   148  	Mode            uint16
   149  	_               [1]uint16
   150  	Ino             uint64
   151  	Size            uint64
   152  	Blocks          uint64
   153  	Attributes_mask uint64
   154  	Atime           StatxTimestamp
   155  	Btime           StatxTimestamp
   156  	Ctime           StatxTimestamp
   157  	Mtime           StatxTimestamp
   158  	Rdev_major      uint32
   159  	Rdev_minor      uint32
   160  	Dev_major       uint32
   161  	Dev_minor       uint32
   162  	_               [14]uint64
   163  }
   164  
   165  type Dirent struct {
   166  	Ino    uint64
   167  	Off    int64
   168  	Reclen uint16
   169  	Type   uint8
   170  	Name   [256]int8
   171  	_      [5]byte
   172  }
   173  
   174  type Fsid struct {
   175  	X__val [2]int32
   176  }
   177  
   178  type Flock_t struct {
   179  	Type   int16
   180  	Whence int16
   181  	_      [4]byte
   182  	Start  int64
   183  	Len    int64
   184  	Pid    int32
   185  	_      [4]byte
   186  }
   187  
   188  type FscryptPolicy struct {
   189  	Version                   uint8
   190  	Contents_encryption_mode  uint8
   191  	Filenames_encryption_mode uint8
   192  	Flags                     uint8
   193  	Master_key_descriptor     [8]uint8
   194  }
   195  
   196  type FscryptKey struct {
   197  	Mode uint32
   198  	Raw  [64]uint8
   199  	Size uint32
   200  }
   201  
   202  type KeyctlDHParams struct {
   203  	Private int32
   204  	Prime   int32
   205  	Base    int32
   206  }
   207  
   208  const (
   209  	FADV_NORMAL     = 0x0
   210  	FADV_RANDOM     = 0x1
   211  	FADV_SEQUENTIAL = 0x2
   212  	FADV_WILLNEED   = 0x3
   213  	FADV_DONTNEED   = 0x4
   214  	FADV_NOREUSE    = 0x5
   215  )
   216  
   217  type RawSockaddrInet4 struct {
   218  	Family uint16
   219  	Port   uint16
   220  	Addr   [4]byte /* in_addr */
   221  	Zero   [8]uint8
   222  }
   223  
   224  type RawSockaddrInet6 struct {
   225  	Family   uint16
   226  	Port     uint16
   227  	Flowinfo uint32
   228  	Addr     [16]byte /* in6_addr */
   229  	Scope_id uint32
   230  }
   231  
   232  type RawSockaddrUnix struct {
   233  	Family uint16
   234  	Path   [108]int8
   235  }
   236  
   237  type RawSockaddrLinklayer struct {
   238  	Family   uint16
   239  	Protocol uint16
   240  	Ifindex  int32
   241  	Hatype   uint16
   242  	Pkttype  uint8
   243  	Halen    uint8
   244  	Addr     [8]uint8
   245  }
   246  
   247  type RawSockaddrNetlink struct {
   248  	Family uint16
   249  	Pad    uint16
   250  	Pid    uint32
   251  	Groups uint32
   252  }
   253  
   254  type RawSockaddrHCI struct {
   255  	Family  uint16
   256  	Dev     uint16
   257  	Channel uint16
   258  }
   259  
   260  type RawSockaddrL2 struct {
   261  	Family      uint16
   262  	Psm         uint16
   263  	Bdaddr      [6]uint8
   264  	Cid         uint16
   265  	Bdaddr_type uint8
   266  	_           [1]byte
   267  }
   268  
   269  type RawSockaddrCAN struct {
   270  	Family  uint16
   271  	_       [2]byte
   272  	Ifindex int32
   273  	Addr    [8]byte
   274  }
   275  
   276  type RawSockaddrALG struct {
   277  	Family uint16
   278  	Type   [14]uint8
   279  	Feat   uint32
   280  	Mask   uint32
   281  	Name   [64]uint8
   282  }
   283  
   284  type RawSockaddrVM struct {
   285  	Family    uint16
   286  	Reserved1 uint16
   287  	Port      uint32
   288  	Cid       uint32
   289  	Zero      [4]uint8
   290  }
   291  
   292  type RawSockaddr struct {
   293  	Family uint16
   294  	Data   [14]int8
   295  }
   296  
   297  type RawSockaddrAny struct {
   298  	Addr RawSockaddr
   299  	Pad  [96]int8
   300  }
   301  
   302  type _Socklen uint32
   303  
   304  type Linger struct {
   305  	Onoff  int32
   306  	Linger int32
   307  }
   308  
   309  type Iovec struct {
   310  	Base *byte
   311  	Len  uint64
   312  }
   313  
   314  type IPMreq struct {
   315  	Multiaddr [4]byte /* in_addr */
   316  	Interface [4]byte /* in_addr */
   317  }
   318  
   319  type IPMreqn struct {
   320  	Multiaddr [4]byte /* in_addr */
   321  	Address   [4]byte /* in_addr */
   322  	Ifindex   int32
   323  }
   324  
   325  type IPv6Mreq struct {
   326  	Multiaddr [16]byte /* in6_addr */
   327  	Interface uint32
   328  }
   329  
   330  type PacketMreq struct {
   331  	Ifindex int32
   332  	Type    uint16
   333  	Alen    uint16
   334  	Address [8]uint8
   335  }
   336  
   337  type Msghdr struct {
   338  	Name       *byte
   339  	Namelen    uint32
   340  	_          [4]byte
   341  	Iov        *Iovec
   342  	Iovlen     uint64
   343  	Control    *byte
   344  	Controllen uint64
   345  	Flags      int32
   346  	_          [4]byte
   347  }
   348  
   349  type Cmsghdr struct {
   350  	Len   uint64
   351  	Level int32
   352  	Type  int32
   353  }
   354  
   355  type Inet4Pktinfo struct {
   356  	Ifindex  int32
   357  	Spec_dst [4]byte /* in_addr */
   358  	Addr     [4]byte /* in_addr */
   359  }
   360  
   361  type Inet6Pktinfo struct {
   362  	Addr    [16]byte /* in6_addr */
   363  	Ifindex uint32
   364  }
   365  
   366  type IPv6MTUInfo struct {
   367  	Addr RawSockaddrInet6
   368  	Mtu  uint32
   369  }
   370  
   371  type ICMPv6Filter struct {
   372  	Data [8]uint32
   373  }
   374  
   375  type Ucred struct {
   376  	Pid int32
   377  	Uid uint32
   378  	Gid uint32
   379  }
   380  
   381  type TCPInfo struct {
   382  	State          uint8
   383  	Ca_state       uint8
   384  	Retransmits    uint8
   385  	Probes         uint8
   386  	Backoff        uint8
   387  	Options        uint8
   388  	_              [2]byte
   389  	Rto            uint32
   390  	Ato            uint32
   391  	Snd_mss        uint32
   392  	Rcv_mss        uint32
   393  	Unacked        uint32
   394  	Sacked         uint32
   395  	Lost           uint32
   396  	Retrans        uint32
   397  	Fackets        uint32
   398  	Last_data_sent uint32
   399  	Last_ack_sent  uint32
   400  	Last_data_recv uint32
   401  	Last_ack_recv  uint32
   402  	Pmtu           uint32
   403  	Rcv_ssthresh   uint32
   404  	Rtt            uint32
   405  	Rttvar         uint32
   406  	Snd_ssthresh   uint32
   407  	Snd_cwnd       uint32
   408  	Advmss         uint32
   409  	Reordering     uint32
   410  	Rcv_rtt        uint32
   411  	Rcv_space      uint32
   412  	Total_retrans  uint32
   413  }
   414  
   415  const (
   416  	SizeofSockaddrInet4     = 0x10
   417  	SizeofSockaddrInet6     = 0x1c
   418  	SizeofSockaddrAny       = 0x70
   419  	SizeofSockaddrUnix      = 0x6e
   420  	SizeofSockaddrLinklayer = 0x14
   421  	SizeofSockaddrNetlink   = 0xc
   422  	SizeofSockaddrHCI       = 0x6
   423  	SizeofSockaddrL2        = 0xe
   424  	SizeofSockaddrCAN       = 0x10
   425  	SizeofSockaddrALG       = 0x58
   426  	SizeofSockaddrVM        = 0x10
   427  	SizeofLinger            = 0x8
   428  	SizeofIovec             = 0x10
   429  	SizeofIPMreq            = 0x8
   430  	SizeofIPMreqn           = 0xc
   431  	SizeofIPv6Mreq          = 0x14
   432  	SizeofPacketMreq        = 0x10
   433  	SizeofMsghdr            = 0x38
   434  	SizeofCmsghdr           = 0x10
   435  	SizeofInet4Pktinfo      = 0xc
   436  	SizeofInet6Pktinfo      = 0x14
   437  	SizeofIPv6MTUInfo       = 0x20
   438  	SizeofICMPv6Filter      = 0x20
   439  	SizeofUcred             = 0xc
   440  	SizeofTCPInfo           = 0x68
   441  )
   442  
   443  const (
   444  	IFA_UNSPEC           = 0x0
   445  	IFA_ADDRESS          = 0x1
   446  	IFA_LOCAL            = 0x2
   447  	IFA_LABEL            = 0x3
   448  	IFA_BROADCAST        = 0x4
   449  	IFA_ANYCAST          = 0x5
   450  	IFA_CACHEINFO        = 0x6
   451  	IFA_MULTICAST        = 0x7
   452  	IFLA_UNSPEC          = 0x0
   453  	IFLA_ADDRESS         = 0x1
   454  	IFLA_BROADCAST       = 0x2
   455  	IFLA_IFNAME          = 0x3
   456  	IFLA_MTU             = 0x4
   457  	IFLA_LINK            = 0x5
   458  	IFLA_QDISC           = 0x6
   459  	IFLA_STATS           = 0x7
   460  	IFLA_COST            = 0x8
   461  	IFLA_PRIORITY        = 0x9
   462  	IFLA_MASTER          = 0xa
   463  	IFLA_WIRELESS        = 0xb
   464  	IFLA_PROTINFO        = 0xc
   465  	IFLA_TXQLEN          = 0xd
   466  	IFLA_MAP             = 0xe
   467  	IFLA_WEIGHT          = 0xf
   468  	IFLA_OPERSTATE       = 0x10
   469  	IFLA_LINKMODE        = 0x11
   470  	IFLA_LINKINFO        = 0x12
   471  	IFLA_NET_NS_PID      = 0x13
   472  	IFLA_IFALIAS         = 0x14
   473  	IFLA_NUM_VF          = 0x15
   474  	IFLA_VFINFO_LIST     = 0x16
   475  	IFLA_STATS64         = 0x17
   476  	IFLA_VF_PORTS        = 0x18
   477  	IFLA_PORT_SELF       = 0x19
   478  	IFLA_AF_SPEC         = 0x1a
   479  	IFLA_GROUP           = 0x1b
   480  	IFLA_NET_NS_FD       = 0x1c
   481  	IFLA_EXT_MASK        = 0x1d
   482  	IFLA_PROMISCUITY     = 0x1e
   483  	IFLA_NUM_TX_QUEUES   = 0x1f
   484  	IFLA_NUM_RX_QUEUES   = 0x20
   485  	IFLA_CARRIER         = 0x21
   486  	IFLA_PHYS_PORT_ID    = 0x22
   487  	IFLA_CARRIER_CHANGES = 0x23
   488  	IFLA_PHYS_SWITCH_ID  = 0x24
   489  	IFLA_LINK_NETNSID    = 0x25
   490  	IFLA_PHYS_PORT_NAME  = 0x26
   491  	IFLA_PROTO_DOWN      = 0x27
   492  	IFLA_GSO_MAX_SEGS    = 0x28
   493  	IFLA_GSO_MAX_SIZE    = 0x29
   494  	IFLA_PAD             = 0x2a
   495  	IFLA_XDP             = 0x2b
   496  	IFLA_EVENT           = 0x2c
   497  	IFLA_NEW_NETNSID     = 0x2d
   498  	IFLA_IF_NETNSID      = 0x2e
   499  	IFLA_MAX             = 0x2e
   500  	RT_SCOPE_UNIVERSE    = 0x0
   501  	RT_SCOPE_SITE        = 0xc8
   502  	RT_SCOPE_LINK        = 0xfd
   503  	RT_SCOPE_HOST        = 0xfe
   504  	RT_SCOPE_NOWHERE     = 0xff
   505  	RT_TABLE_UNSPEC      = 0x0
   506  	RT_TABLE_COMPAT      = 0xfc
   507  	RT_TABLE_DEFAULT     = 0xfd
   508  	RT_TABLE_MAIN        = 0xfe
   509  	RT_TABLE_LOCAL       = 0xff
   510  	RT_TABLE_MAX         = 0xffffffff
   511  	RTA_UNSPEC           = 0x0
   512  	RTA_DST              = 0x1
   513  	RTA_SRC              = 0x2
   514  	RTA_IIF              = 0x3
   515  	RTA_OIF              = 0x4
   516  	RTA_GATEWAY          = 0x5
   517  	RTA_PRIORITY         = 0x6
   518  	RTA_PREFSRC          = 0x7
   519  	RTA_METRICS          = 0x8
   520  	RTA_MULTIPATH        = 0x9
   521  	RTA_FLOW             = 0xb
   522  	RTA_CACHEINFO        = 0xc
   523  	RTA_TABLE            = 0xf
   524  	RTN_UNSPEC           = 0x0
   525  	RTN_UNICAST          = 0x1
   526  	RTN_LOCAL            = 0x2
   527  	RTN_BROADCAST        = 0x3
   528  	RTN_ANYCAST          = 0x4
   529  	RTN_MULTICAST        = 0x5
   530  	RTN_BLACKHOLE        = 0x6
   531  	RTN_UNREACHABLE      = 0x7
   532  	RTN_PROHIBIT         = 0x8
   533  	RTN_THROW            = 0x9
   534  	RTN_NAT              = 0xa
   535  	RTN_XRESOLVE         = 0xb
   536  	RTNLGRP_NONE         = 0x0
   537  	RTNLGRP_LINK         = 0x1
   538  	RTNLGRP_NOTIFY       = 0x2
   539  	RTNLGRP_NEIGH        = 0x3
   540  	RTNLGRP_TC           = 0x4
   541  	RTNLGRP_IPV4_IFADDR  = 0x5
   542  	RTNLGRP_IPV4_MROUTE  = 0x6
   543  	RTNLGRP_IPV4_ROUTE   = 0x7
   544  	RTNLGRP_IPV4_RULE    = 0x8
   545  	RTNLGRP_IPV6_IFADDR  = 0x9
   546  	RTNLGRP_IPV6_MROUTE  = 0xa
   547  	RTNLGRP_IPV6_ROUTE   = 0xb
   548  	RTNLGRP_IPV6_IFINFO  = 0xc
   549  	RTNLGRP_IPV6_PREFIX  = 0x12
   550  	RTNLGRP_IPV6_RULE    = 0x13
   551  	RTNLGRP_ND_USEROPT   = 0x14
   552  	SizeofNlMsghdr       = 0x10
   553  	SizeofNlMsgerr       = 0x14
   554  	SizeofRtGenmsg       = 0x1
   555  	SizeofNlAttr         = 0x4
   556  	SizeofRtAttr         = 0x4
   557  	SizeofIfInfomsg      = 0x10
   558  	SizeofIfAddrmsg      = 0x8
   559  	SizeofRtMsg          = 0xc
   560  	SizeofRtNexthop      = 0x8
   561  )
   562  
   563  type NlMsghdr struct {
   564  	Len   uint32
   565  	Type  uint16
   566  	Flags uint16
   567  	Seq   uint32
   568  	Pid   uint32
   569  }
   570  
   571  type NlMsgerr struct {
   572  	Error int32
   573  	Msg   NlMsghdr
   574  }
   575  
   576  type RtGenmsg struct {
   577  	Family uint8
   578  }
   579  
   580  type NlAttr struct {
   581  	Len  uint16
   582  	Type uint16
   583  }
   584  
   585  type RtAttr struct {
   586  	Len  uint16
   587  	Type uint16
   588  }
   589  
   590  type IfInfomsg struct {
   591  	Family     uint8
   592  	X__ifi_pad uint8
   593  	Type       uint16
   594  	Index      int32
   595  	Flags      uint32
   596  	Change     uint32
   597  }
   598  
   599  type IfAddrmsg struct {
   600  	Family    uint8
   601  	Prefixlen uint8
   602  	Flags     uint8
   603  	Scope     uint8
   604  	Index     uint32
   605  }
   606  
   607  type RtMsg struct {
   608  	Family   uint8
   609  	Dst_len  uint8
   610  	Src_len  uint8
   611  	Tos      uint8
   612  	Table    uint8
   613  	Protocol uint8
   614  	Scope    uint8
   615  	Type     uint8
   616  	Flags    uint32
   617  }
   618  
   619  type RtNexthop struct {
   620  	Len     uint16
   621  	Flags   uint8
   622  	Hops    uint8
   623  	Ifindex int32
   624  }
   625  
   626  const (
   627  	SizeofSockFilter = 0x8
   628  	SizeofSockFprog  = 0x10
   629  )
   630  
   631  type SockFilter struct {
   632  	Code uint16
   633  	Jt   uint8
   634  	Jf   uint8
   635  	K    uint32
   636  }
   637  
   638  type SockFprog struct {
   639  	Len    uint16
   640  	_      [6]byte
   641  	Filter *SockFilter
   642  }
   643  
   644  type InotifyEvent struct {
   645  	Wd     int32
   646  	Mask   uint32
   647  	Cookie uint32
   648  	Len    uint32
   649  }
   650  
   651  const SizeofInotifyEvent = 0x10
   652  
   653  type PtraceRegs struct {
   654  	Regs     [32]uint64
   655  	Lo       uint64
   656  	Hi       uint64
   657  	Epc      uint64
   658  	Badvaddr uint64
   659  	Status   uint64
   660  	Cause    uint64
   661  }
   662  
   663  type FdSet struct {
   664  	Bits [16]int64
   665  }
   666  
   667  type Sysinfo_t struct {
   668  	Uptime    int64
   669  	Loads     [3]uint64
   670  	Totalram  uint64
   671  	Freeram   uint64
   672  	Sharedram uint64
   673  	Bufferram uint64
   674  	Totalswap uint64
   675  	Freeswap  uint64
   676  	Procs     uint16
   677  	Pad       uint16
   678  	_         [4]byte
   679  	Totalhigh uint64
   680  	Freehigh  uint64
   681  	Unit      uint32
   682  	X_f       [0]int8
   683  	_         [4]byte
   684  }
   685  
   686  type Utsname struct {
   687  	Sysname    [65]byte
   688  	Nodename   [65]byte
   689  	Release    [65]byte
   690  	Version    [65]byte
   691  	Machine    [65]byte
   692  	Domainname [65]byte
   693  }
   694  
   695  type Ustat_t struct {
   696  	Tfree  int32
   697  	_      [4]byte
   698  	Tinode uint64
   699  	Fname  [6]int8
   700  	Fpack  [6]int8
   701  	_      [4]byte
   702  }
   703  
   704  type EpollEvent struct {
   705  	Events uint32
   706  	Fd     int32
   707  	Pad    int32
   708  }
   709  
   710  const (
   711  	AT_EMPTY_PATH   = 0x1000
   712  	AT_FDCWD        = -0x64
   713  	AT_NO_AUTOMOUNT = 0x800
   714  	AT_REMOVEDIR    = 0x200
   715  
   716  	AT_STATX_SYNC_AS_STAT = 0x0
   717  	AT_STATX_FORCE_SYNC   = 0x2000
   718  	AT_STATX_DONT_SYNC    = 0x4000
   719  
   720  	AT_SYMLINK_FOLLOW   = 0x400
   721  	AT_SYMLINK_NOFOLLOW = 0x100
   722  )
   723  
   724  type PollFd struct {
   725  	Fd      int32
   726  	Events  int16
   727  	Revents int16
   728  }
   729  
   730  const (
   731  	POLLIN    = 0x1
   732  	POLLPRI   = 0x2
   733  	POLLOUT   = 0x4
   734  	POLLRDHUP = 0x2000
   735  	POLLERR   = 0x8
   736  	POLLHUP   = 0x10
   737  	POLLNVAL  = 0x20
   738  )
   739  
   740  type Sigset_t struct {
   741  	X__val [16]uint64
   742  }
   743  
   744  const RNDGETENTCNT = 0x40045200
   745  
   746  const PERF_IOC_FLAG_GROUP = 0x1
   747  
   748  type Termios struct {
   749  	Iflag  uint32
   750  	Oflag  uint32
   751  	Cflag  uint32
   752  	Lflag  uint32
   753  	Line   uint8
   754  	Cc     [23]uint8
   755  	Ispeed uint32
   756  	Ospeed uint32
   757  }
   758  
   759  type Winsize struct {
   760  	Row    uint16
   761  	Col    uint16
   762  	Xpixel uint16
   763  	Ypixel uint16
   764  }
   765  
   766  type Taskstats struct {
   767  	Version                   uint16
   768  	_                         [2]byte
   769  	Ac_exitcode               uint32
   770  	Ac_flag                   uint8
   771  	Ac_nice                   uint8
   772  	_                         [6]byte
   773  	Cpu_count                 uint64
   774  	Cpu_delay_total           uint64
   775  	Blkio_count               uint64
   776  	Blkio_delay_total         uint64
   777  	Swapin_count              uint64
   778  	Swapin_delay_total        uint64
   779  	Cpu_run_real_total        uint64
   780  	Cpu_run_virtual_total     uint64
   781  	Ac_comm                   [32]int8
   782  	Ac_sched                  uint8
   783  	Ac_pad                    [3]uint8
   784  	_                         [4]byte
   785  	Ac_uid                    uint32
   786  	Ac_gid                    uint32
   787  	Ac_pid                    uint32
   788  	Ac_ppid                   uint32
   789  	Ac_btime                  uint32
   790  	_                         [4]byte
   791  	Ac_etime                  uint64
   792  	Ac_utime                  uint64
   793  	Ac_stime                  uint64
   794  	Ac_minflt                 uint64
   795  	Ac_majflt                 uint64
   796  	Coremem                   uint64
   797  	Virtmem                   uint64
   798  	Hiwater_rss               uint64
   799  	Hiwater_vm                uint64
   800  	Read_char                 uint64
   801  	Write_char                uint64
   802  	Read_syscalls             uint64
   803  	Write_syscalls            uint64
   804  	Read_bytes                uint64
   805  	Write_bytes               uint64
   806  	Cancelled_write_bytes     uint64
   807  	Nvcsw                     uint64
   808  	Nivcsw                    uint64
   809  	Ac_utimescaled            uint64
   810  	Ac_stimescaled            uint64
   811  	Cpu_scaled_run_real_total uint64
   812  	Freepages_count           uint64
   813  	Freepages_delay_total     uint64
   814  }
   815  
   816  const (
   817  	TASKSTATS_CMD_UNSPEC                  = 0x0
   818  	TASKSTATS_CMD_GET                     = 0x1
   819  	TASKSTATS_CMD_NEW                     = 0x2
   820  	TASKSTATS_TYPE_UNSPEC                 = 0x0
   821  	TASKSTATS_TYPE_PID                    = 0x1
   822  	TASKSTATS_TYPE_TGID                   = 0x2
   823  	TASKSTATS_TYPE_STATS                  = 0x3
   824  	TASKSTATS_TYPE_AGGR_PID               = 0x4
   825  	TASKSTATS_TYPE_AGGR_TGID              = 0x5
   826  	TASKSTATS_TYPE_NULL                   = 0x6
   827  	TASKSTATS_CMD_ATTR_UNSPEC             = 0x0
   828  	TASKSTATS_CMD_ATTR_PID                = 0x1
   829  	TASKSTATS_CMD_ATTR_TGID               = 0x2
   830  	TASKSTATS_CMD_ATTR_REGISTER_CPUMASK   = 0x3
   831  	TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4
   832  )
   833  
   834  type CGroupStats struct {
   835  	Sleeping        uint64
   836  	Running         uint64
   837  	Stopped         uint64
   838  	Uninterruptible uint64
   839  	Io_wait         uint64
   840  }
   841  
   842  const (
   843  	CGROUPSTATS_CMD_UNSPEC        = 0x3
   844  	CGROUPSTATS_CMD_GET           = 0x4
   845  	CGROUPSTATS_CMD_NEW           = 0x5
   846  	CGROUPSTATS_TYPE_UNSPEC       = 0x0
   847  	CGROUPSTATS_TYPE_CGROUP_STATS = 0x1
   848  	CGROUPSTATS_CMD_ATTR_UNSPEC   = 0x0
   849  	CGROUPSTATS_CMD_ATTR_FD       = 0x1
   850  )
   851  
   852  type Genlmsghdr struct {
   853  	Cmd      uint8
   854  	Version  uint8
   855  	Reserved uint16
   856  }
   857  
   858  const (
   859  	CTRL_CMD_UNSPEC            = 0x0
   860  	CTRL_CMD_NEWFAMILY         = 0x1
   861  	CTRL_CMD_DELFAMILY         = 0x2
   862  	CTRL_CMD_GETFAMILY         = 0x3
   863  	CTRL_CMD_NEWOPS            = 0x4
   864  	CTRL_CMD_DELOPS            = 0x5
   865  	CTRL_CMD_GETOPS            = 0x6
   866  	CTRL_CMD_NEWMCAST_GRP      = 0x7
   867  	CTRL_CMD_DELMCAST_GRP      = 0x8
   868  	CTRL_CMD_GETMCAST_GRP      = 0x9
   869  	CTRL_ATTR_UNSPEC           = 0x0
   870  	CTRL_ATTR_FAMILY_ID        = 0x1
   871  	CTRL_ATTR_FAMILY_NAME      = 0x2
   872  	CTRL_ATTR_VERSION          = 0x3
   873  	CTRL_ATTR_HDRSIZE          = 0x4
   874  	CTRL_ATTR_MAXATTR          = 0x5
   875  	CTRL_ATTR_OPS              = 0x6
   876  	CTRL_ATTR_MCAST_GROUPS     = 0x7
   877  	CTRL_ATTR_OP_UNSPEC        = 0x0
   878  	CTRL_ATTR_OP_ID            = 0x1
   879  	CTRL_ATTR_OP_FLAGS         = 0x2
   880  	CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0
   881  	CTRL_ATTR_MCAST_GRP_NAME   = 0x1
   882  	CTRL_ATTR_MCAST_GRP_ID     = 0x2
   883  )
   884  
   885  type cpuMask uint64
   886  
   887  const (
   888  	_CPU_SETSIZE = 0x400
   889  	_NCPUBITS    = 0x40
   890  )
   891  
   892  const (
   893  	BDADDR_BREDR     = 0x0
   894  	BDADDR_LE_PUBLIC = 0x1
   895  	BDADDR_LE_RANDOM = 0x2
   896  )