github.com/kooksee/kchain@v0.0.0-20180613035215-4aef51c04906/src/golang.org/x/sys/unix/ztypes_linux_ppc64.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 ppc64,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  	Pad_cgo_0 [4]byte
    37  	Offset    int64
    38  	Freq      int64
    39  	Maxerror  int64
    40  	Esterror  int64
    41  	Status    int32
    42  	Pad_cgo_1 [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  	Pad_cgo_2 [4]byte
    52  	Stabil    int64
    53  	Jitcnt    int64
    54  	Calcnt    int64
    55  	Errcnt    int64
    56  	Stbcnt    int64
    57  	Tai       int32
    58  	Pad_cgo_3 [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 Dirent struct {
   137  	Ino       uint64
   138  	Off       int64
   139  	Reclen    uint16
   140  	Type      uint8
   141  	Name      [256]uint8
   142  	Pad_cgo_0 [5]byte
   143  }
   144  
   145  type Fsid struct {
   146  	X__val [2]int32
   147  }
   148  
   149  type Flock_t struct {
   150  	Type      int16
   151  	Whence    int16
   152  	Pad_cgo_0 [4]byte
   153  	Start     int64
   154  	Len       int64
   155  	Pid       int32
   156  	Pad_cgo_1 [4]byte
   157  }
   158  
   159  type FscryptPolicy struct {
   160  	Version                   uint8
   161  	Contents_encryption_mode  uint8
   162  	Filenames_encryption_mode uint8
   163  	Flags                     uint8
   164  	Master_key_descriptor     [8]uint8
   165  }
   166  
   167  type FscryptKey struct {
   168  	Mode uint32
   169  	Raw  [64]uint8
   170  	Size uint32
   171  }
   172  
   173  type KeyctlDHParams struct {
   174  	Private int32
   175  	Prime   int32
   176  	Base    int32
   177  }
   178  
   179  const (
   180  	FADV_NORMAL     = 0x0
   181  	FADV_RANDOM     = 0x1
   182  	FADV_SEQUENTIAL = 0x2
   183  	FADV_WILLNEED   = 0x3
   184  	FADV_DONTNEED   = 0x4
   185  	FADV_NOREUSE    = 0x5
   186  )
   187  
   188  type RawSockaddrInet4 struct {
   189  	Family uint16
   190  	Port   uint16
   191  	Addr   [4]byte /* in_addr */
   192  	Zero   [8]uint8
   193  }
   194  
   195  type RawSockaddrInet6 struct {
   196  	Family   uint16
   197  	Port     uint16
   198  	Flowinfo uint32
   199  	Addr     [16]byte /* in6_addr */
   200  	Scope_id uint32
   201  }
   202  
   203  type RawSockaddrUnix struct {
   204  	Family uint16
   205  	Path   [108]int8
   206  }
   207  
   208  type RawSockaddrLinklayer struct {
   209  	Family   uint16
   210  	Protocol uint16
   211  	Ifindex  int32
   212  	Hatype   uint16
   213  	Pkttype  uint8
   214  	Halen    uint8
   215  	Addr     [8]uint8
   216  }
   217  
   218  type RawSockaddrNetlink struct {
   219  	Family uint16
   220  	Pad    uint16
   221  	Pid    uint32
   222  	Groups uint32
   223  }
   224  
   225  type RawSockaddrHCI struct {
   226  	Family  uint16
   227  	Dev     uint16
   228  	Channel uint16
   229  }
   230  
   231  type RawSockaddrCAN struct {
   232  	Family    uint16
   233  	Pad_cgo_0 [2]byte
   234  	Ifindex   int32
   235  	Addr      [8]byte
   236  }
   237  
   238  type RawSockaddrALG struct {
   239  	Family uint16
   240  	Type   [14]uint8
   241  	Feat   uint32
   242  	Mask   uint32
   243  	Name   [64]uint8
   244  }
   245  
   246  type RawSockaddrVM struct {
   247  	Family    uint16
   248  	Reserved1 uint16
   249  	Port      uint32
   250  	Cid       uint32
   251  	Zero      [4]uint8
   252  }
   253  
   254  type RawSockaddr struct {
   255  	Family uint16
   256  	Data   [14]uint8
   257  }
   258  
   259  type RawSockaddrAny struct {
   260  	Addr RawSockaddr
   261  	Pad  [96]uint8
   262  }
   263  
   264  type _Socklen uint32
   265  
   266  type Linger struct {
   267  	Onoff  int32
   268  	Linger int32
   269  }
   270  
   271  type Iovec struct {
   272  	Base *byte
   273  	Len  uint64
   274  }
   275  
   276  type IPMreq struct {
   277  	Multiaddr [4]byte /* in_addr */
   278  	Interface [4]byte /* in_addr */
   279  }
   280  
   281  type IPMreqn struct {
   282  	Multiaddr [4]byte /* in_addr */
   283  	Address   [4]byte /* in_addr */
   284  	Ifindex   int32
   285  }
   286  
   287  type IPv6Mreq struct {
   288  	Multiaddr [16]byte /* in6_addr */
   289  	Interface uint32
   290  }
   291  
   292  type Msghdr struct {
   293  	Name       *byte
   294  	Namelen    uint32
   295  	Pad_cgo_0  [4]byte
   296  	Iov        *Iovec
   297  	Iovlen     uint64
   298  	Control    *byte
   299  	Controllen uint64
   300  	Flags      int32
   301  	Pad_cgo_1  [4]byte
   302  }
   303  
   304  type Cmsghdr struct {
   305  	Len   uint64
   306  	Level int32
   307  	Type  int32
   308  }
   309  
   310  type Inet4Pktinfo struct {
   311  	Ifindex  int32
   312  	Spec_dst [4]byte /* in_addr */
   313  	Addr     [4]byte /* in_addr */
   314  }
   315  
   316  type Inet6Pktinfo struct {
   317  	Addr    [16]byte /* in6_addr */
   318  	Ifindex uint32
   319  }
   320  
   321  type IPv6MTUInfo struct {
   322  	Addr RawSockaddrInet6
   323  	Mtu  uint32
   324  }
   325  
   326  type ICMPv6Filter struct {
   327  	Data [8]uint32
   328  }
   329  
   330  type Ucred struct {
   331  	Pid int32
   332  	Uid uint32
   333  	Gid uint32
   334  }
   335  
   336  type TCPInfo struct {
   337  	State          uint8
   338  	Ca_state       uint8
   339  	Retransmits    uint8
   340  	Probes         uint8
   341  	Backoff        uint8
   342  	Options        uint8
   343  	Pad_cgo_0      [2]byte
   344  	Rto            uint32
   345  	Ato            uint32
   346  	Snd_mss        uint32
   347  	Rcv_mss        uint32
   348  	Unacked        uint32
   349  	Sacked         uint32
   350  	Lost           uint32
   351  	Retrans        uint32
   352  	Fackets        uint32
   353  	Last_data_sent uint32
   354  	Last_ack_sent  uint32
   355  	Last_data_recv uint32
   356  	Last_ack_recv  uint32
   357  	Pmtu           uint32
   358  	Rcv_ssthresh   uint32
   359  	Rtt            uint32
   360  	Rttvar         uint32
   361  	Snd_ssthresh   uint32
   362  	Snd_cwnd       uint32
   363  	Advmss         uint32
   364  	Reordering     uint32
   365  	Rcv_rtt        uint32
   366  	Rcv_space      uint32
   367  	Total_retrans  uint32
   368  }
   369  
   370  const (
   371  	SizeofSockaddrInet4     = 0x10
   372  	SizeofSockaddrInet6     = 0x1c
   373  	SizeofSockaddrAny       = 0x70
   374  	SizeofSockaddrUnix      = 0x6e
   375  	SizeofSockaddrLinklayer = 0x14
   376  	SizeofSockaddrNetlink   = 0xc
   377  	SizeofSockaddrHCI       = 0x6
   378  	SizeofSockaddrCAN       = 0x10
   379  	SizeofSockaddrALG       = 0x58
   380  	SizeofSockaddrVM        = 0x10
   381  	SizeofLinger            = 0x8
   382  	SizeofIPMreq            = 0x8
   383  	SizeofIPMreqn           = 0xc
   384  	SizeofIPv6Mreq          = 0x14
   385  	SizeofMsghdr            = 0x38
   386  	SizeofCmsghdr           = 0x10
   387  	SizeofInet4Pktinfo      = 0xc
   388  	SizeofInet6Pktinfo      = 0x14
   389  	SizeofIPv6MTUInfo       = 0x20
   390  	SizeofICMPv6Filter      = 0x20
   391  	SizeofUcred             = 0xc
   392  	SizeofTCPInfo           = 0x68
   393  )
   394  
   395  const (
   396  	IFA_UNSPEC          = 0x0
   397  	IFA_ADDRESS         = 0x1
   398  	IFA_LOCAL           = 0x2
   399  	IFA_LABEL           = 0x3
   400  	IFA_BROADCAST       = 0x4
   401  	IFA_ANYCAST         = 0x5
   402  	IFA_CACHEINFO       = 0x6
   403  	IFA_MULTICAST       = 0x7
   404  	IFLA_UNSPEC         = 0x0
   405  	IFLA_ADDRESS        = 0x1
   406  	IFLA_BROADCAST      = 0x2
   407  	IFLA_IFNAME         = 0x3
   408  	IFLA_MTU            = 0x4
   409  	IFLA_LINK           = 0x5
   410  	IFLA_QDISC          = 0x6
   411  	IFLA_STATS          = 0x7
   412  	IFLA_COST           = 0x8
   413  	IFLA_PRIORITY       = 0x9
   414  	IFLA_MASTER         = 0xa
   415  	IFLA_WIRELESS       = 0xb
   416  	IFLA_PROTINFO       = 0xc
   417  	IFLA_TXQLEN         = 0xd
   418  	IFLA_MAP            = 0xe
   419  	IFLA_WEIGHT         = 0xf
   420  	IFLA_OPERSTATE      = 0x10
   421  	IFLA_LINKMODE       = 0x11
   422  	IFLA_LINKINFO       = 0x12
   423  	IFLA_NET_NS_PID     = 0x13
   424  	IFLA_IFALIAS        = 0x14
   425  	IFLA_MAX            = 0x2b
   426  	RT_SCOPE_UNIVERSE   = 0x0
   427  	RT_SCOPE_SITE       = 0xc8
   428  	RT_SCOPE_LINK       = 0xfd
   429  	RT_SCOPE_HOST       = 0xfe
   430  	RT_SCOPE_NOWHERE    = 0xff
   431  	RT_TABLE_UNSPEC     = 0x0
   432  	RT_TABLE_COMPAT     = 0xfc
   433  	RT_TABLE_DEFAULT    = 0xfd
   434  	RT_TABLE_MAIN       = 0xfe
   435  	RT_TABLE_LOCAL      = 0xff
   436  	RT_TABLE_MAX        = 0xffffffff
   437  	RTA_UNSPEC          = 0x0
   438  	RTA_DST             = 0x1
   439  	RTA_SRC             = 0x2
   440  	RTA_IIF             = 0x3
   441  	RTA_OIF             = 0x4
   442  	RTA_GATEWAY         = 0x5
   443  	RTA_PRIORITY        = 0x6
   444  	RTA_PREFSRC         = 0x7
   445  	RTA_METRICS         = 0x8
   446  	RTA_MULTIPATH       = 0x9
   447  	RTA_FLOW            = 0xb
   448  	RTA_CACHEINFO       = 0xc
   449  	RTA_TABLE           = 0xf
   450  	RTN_UNSPEC          = 0x0
   451  	RTN_UNICAST         = 0x1
   452  	RTN_LOCAL           = 0x2
   453  	RTN_BROADCAST       = 0x3
   454  	RTN_ANYCAST         = 0x4
   455  	RTN_MULTICAST       = 0x5
   456  	RTN_BLACKHOLE       = 0x6
   457  	RTN_UNREACHABLE     = 0x7
   458  	RTN_PROHIBIT        = 0x8
   459  	RTN_THROW           = 0x9
   460  	RTN_NAT             = 0xa
   461  	RTN_XRESOLVE        = 0xb
   462  	RTNLGRP_NONE        = 0x0
   463  	RTNLGRP_LINK        = 0x1
   464  	RTNLGRP_NOTIFY      = 0x2
   465  	RTNLGRP_NEIGH       = 0x3
   466  	RTNLGRP_TC          = 0x4
   467  	RTNLGRP_IPV4_IFADDR = 0x5
   468  	RTNLGRP_IPV4_MROUTE = 0x6
   469  	RTNLGRP_IPV4_ROUTE  = 0x7
   470  	RTNLGRP_IPV4_RULE   = 0x8
   471  	RTNLGRP_IPV6_IFADDR = 0x9
   472  	RTNLGRP_IPV6_MROUTE = 0xa
   473  	RTNLGRP_IPV6_ROUTE  = 0xb
   474  	RTNLGRP_IPV6_IFINFO = 0xc
   475  	RTNLGRP_IPV6_PREFIX = 0x12
   476  	RTNLGRP_IPV6_RULE   = 0x13
   477  	RTNLGRP_ND_USEROPT  = 0x14
   478  	SizeofNlMsghdr      = 0x10
   479  	SizeofNlMsgerr      = 0x14
   480  	SizeofRtGenmsg      = 0x1
   481  	SizeofNlAttr        = 0x4
   482  	SizeofRtAttr        = 0x4
   483  	SizeofIfInfomsg     = 0x10
   484  	SizeofIfAddrmsg     = 0x8
   485  	SizeofRtMsg         = 0xc
   486  	SizeofRtNexthop     = 0x8
   487  )
   488  
   489  type NlMsghdr struct {
   490  	Len   uint32
   491  	Type  uint16
   492  	Flags uint16
   493  	Seq   uint32
   494  	Pid   uint32
   495  }
   496  
   497  type NlMsgerr struct {
   498  	Error int32
   499  	Msg   NlMsghdr
   500  }
   501  
   502  type RtGenmsg struct {
   503  	Family uint8
   504  }
   505  
   506  type NlAttr struct {
   507  	Len  uint16
   508  	Type uint16
   509  }
   510  
   511  type RtAttr struct {
   512  	Len  uint16
   513  	Type uint16
   514  }
   515  
   516  type IfInfomsg struct {
   517  	Family     uint8
   518  	X__ifi_pad uint8
   519  	Type       uint16
   520  	Index      int32
   521  	Flags      uint32
   522  	Change     uint32
   523  }
   524  
   525  type IfAddrmsg struct {
   526  	Family    uint8
   527  	Prefixlen uint8
   528  	Flags     uint8
   529  	Scope     uint8
   530  	Index     uint32
   531  }
   532  
   533  type RtMsg struct {
   534  	Family   uint8
   535  	Dst_len  uint8
   536  	Src_len  uint8
   537  	Tos      uint8
   538  	Table    uint8
   539  	Protocol uint8
   540  	Scope    uint8
   541  	Type     uint8
   542  	Flags    uint32
   543  }
   544  
   545  type RtNexthop struct {
   546  	Len     uint16
   547  	Flags   uint8
   548  	Hops    uint8
   549  	Ifindex int32
   550  }
   551  
   552  const (
   553  	SizeofSockFilter = 0x8
   554  	SizeofSockFprog  = 0x10
   555  )
   556  
   557  type SockFilter struct {
   558  	Code uint16
   559  	Jt   uint8
   560  	Jf   uint8
   561  	K    uint32
   562  }
   563  
   564  type SockFprog struct {
   565  	Len       uint16
   566  	Pad_cgo_0 [6]byte
   567  	Filter    *SockFilter
   568  }
   569  
   570  type InotifyEvent struct {
   571  	Wd     int32
   572  	Mask   uint32
   573  	Cookie uint32
   574  	Len    uint32
   575  }
   576  
   577  const SizeofInotifyEvent = 0x10
   578  
   579  type PtraceRegs struct {
   580  	Gpr       [32]uint64
   581  	Nip       uint64
   582  	Msr       uint64
   583  	Orig_gpr3 uint64
   584  	Ctr       uint64
   585  	Link      uint64
   586  	Xer       uint64
   587  	Ccr       uint64
   588  	Softe     uint64
   589  	Trap      uint64
   590  	Dar       uint64
   591  	Dsisr     uint64
   592  	Result    uint64
   593  }
   594  
   595  type FdSet struct {
   596  	Bits [16]int64
   597  }
   598  
   599  type Sysinfo_t struct {
   600  	Uptime    int64
   601  	Loads     [3]uint64
   602  	Totalram  uint64
   603  	Freeram   uint64
   604  	Sharedram uint64
   605  	Bufferram uint64
   606  	Totalswap uint64
   607  	Freeswap  uint64
   608  	Procs     uint16
   609  	Pad       uint16
   610  	Pad_cgo_0 [4]byte
   611  	Totalhigh uint64
   612  	Freehigh  uint64
   613  	Unit      uint32
   614  	X_f       [0]uint8
   615  	Pad_cgo_1 [4]byte
   616  }
   617  
   618  type Utsname struct {
   619  	Sysname    [65]uint8
   620  	Nodename   [65]uint8
   621  	Release    [65]uint8
   622  	Version    [65]uint8
   623  	Machine    [65]uint8
   624  	Domainname [65]uint8
   625  }
   626  
   627  type Ustat_t struct {
   628  	Tfree     int32
   629  	Pad_cgo_0 [4]byte
   630  	Tinode    uint64
   631  	Fname     [6]uint8
   632  	Fpack     [6]uint8
   633  	Pad_cgo_1 [4]byte
   634  }
   635  
   636  type EpollEvent struct {
   637  	Events  uint32
   638  	X_padFd int32
   639  	Fd      int32
   640  	Pad     int32
   641  }
   642  
   643  const (
   644  	AT_FDCWD            = -0x64
   645  	AT_REMOVEDIR        = 0x200
   646  	AT_SYMLINK_FOLLOW   = 0x400
   647  	AT_SYMLINK_NOFOLLOW = 0x100
   648  )
   649  
   650  type PollFd struct {
   651  	Fd      int32
   652  	Events  int16
   653  	Revents int16
   654  }
   655  
   656  const (
   657  	POLLIN    = 0x1
   658  	POLLPRI   = 0x2
   659  	POLLOUT   = 0x4
   660  	POLLRDHUP = 0x2000
   661  	POLLERR   = 0x8
   662  	POLLHUP   = 0x10
   663  	POLLNVAL  = 0x20
   664  )
   665  
   666  type Sigset_t struct {
   667  	X__val [16]uint64
   668  }
   669  
   670  const RNDGETENTCNT = 0x40045200
   671  
   672  const _SC_PAGESIZE = 0x1e
   673  
   674  type Termios struct {
   675  	Iflag  uint32
   676  	Oflag  uint32
   677  	Cflag  uint32
   678  	Lflag  uint32
   679  	Cc     [19]uint8
   680  	Line   uint8
   681  	Ispeed uint32
   682  	Ospeed uint32
   683  }