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