github.com/juelite/golang.org-x-sys@v0.0.0-20181121071242-7b69e1c5db33/unix/ztypes_linux_ppc64.go (about)

     1  // +build ppc64,linux
     2  // Created by cgo -godefs - DO NOT EDIT
     3  // cgo -godefs types_linux.go
     4  
     5  package unix
     6  
     7  const (
     8  	sizeofPtr      = 0x8
     9  	sizeofShort    = 0x2
    10  	sizeofInt      = 0x4
    11  	sizeofLong     = 0x8
    12  	sizeofLongLong = 0x8
    13  	PathMax        = 0x1000
    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 Timex struct {
    34  	Modes     uint32
    35  	Pad_cgo_0 [4]byte
    36  	Offset    int64
    37  	Freq      int64
    38  	Maxerror  int64
    39  	Esterror  int64
    40  	Status    int32
    41  	Pad_cgo_1 [4]byte
    42  	Constant  int64
    43  	Precision int64
    44  	Tolerance int64
    45  	Time      Timeval
    46  	Tick      int64
    47  	Ppsfreq   int64
    48  	Jitter    int64
    49  	Shift     int32
    50  	Pad_cgo_2 [4]byte
    51  	Stabil    int64
    52  	Jitcnt    int64
    53  	Calcnt    int64
    54  	Errcnt    int64
    55  	Stbcnt    int64
    56  	Tai       int32
    57  	Pad_cgo_3 [44]byte
    58  }
    59  
    60  type Time_t int64
    61  
    62  type Tms struct {
    63  	Utime  int64
    64  	Stime  int64
    65  	Cutime int64
    66  	Cstime int64
    67  }
    68  
    69  type Utimbuf struct {
    70  	Actime  int64
    71  	Modtime int64
    72  }
    73  
    74  type Rusage struct {
    75  	Utime    Timeval
    76  	Stime    Timeval
    77  	Maxrss   int64
    78  	Ixrss    int64
    79  	Idrss    int64
    80  	Isrss    int64
    81  	Minflt   int64
    82  	Majflt   int64
    83  	Nswap    int64
    84  	Inblock  int64
    85  	Oublock  int64
    86  	Msgsnd   int64
    87  	Msgrcv   int64
    88  	Nsignals int64
    89  	Nvcsw    int64
    90  	Nivcsw   int64
    91  }
    92  
    93  type Rlimit struct {
    94  	Cur uint64
    95  	Max uint64
    96  }
    97  
    98  type _Gid_t uint32
    99  
   100  type Stat_t struct {
   101  	Dev                uint64
   102  	Ino                uint64
   103  	Nlink              uint64
   104  	Mode               uint32
   105  	Uid                uint32
   106  	Gid                uint32
   107  	X__pad2            int32
   108  	Rdev               uint64
   109  	Size               int64
   110  	Blksize            int64
   111  	Blocks             int64
   112  	Atim               Timespec
   113  	Mtim               Timespec
   114  	Ctim               Timespec
   115  	X__glibc_reserved4 uint64
   116  	X__glibc_reserved5 uint64
   117  	X__glibc_reserved6 uint64
   118  }
   119  
   120  type Statfs_t struct {
   121  	Type    int64
   122  	Bsize   int64
   123  	Blocks  uint64
   124  	Bfree   uint64
   125  	Bavail  uint64
   126  	Files   uint64
   127  	Ffree   uint64
   128  	Fsid    Fsid
   129  	Namelen int64
   130  	Frsize  int64
   131  	Flags   int64
   132  	Spare   [4]int64
   133  }
   134  
   135  type Dirent struct {
   136  	Ino       uint64
   137  	Off       int64
   138  	Reclen    uint16
   139  	Type      uint8
   140  	Name      [256]uint8
   141  	Pad_cgo_0 [5]byte
   142  }
   143  
   144  type Fsid struct {
   145  	X__val [2]int32
   146  }
   147  
   148  type Flock_t struct {
   149  	Type      int16
   150  	Whence    int16
   151  	Pad_cgo_0 [4]byte
   152  	Start     int64
   153  	Len       int64
   154  	Pid       int32
   155  	Pad_cgo_1 [4]byte
   156  }
   157  
   158  const (
   159  	FADV_NORMAL     = 0x0
   160  	FADV_RANDOM     = 0x1
   161  	FADV_SEQUENTIAL = 0x2
   162  	FADV_WILLNEED   = 0x3
   163  	FADV_DONTNEED   = 0x4
   164  	FADV_NOREUSE    = 0x5
   165  )
   166  
   167  type RawSockaddrInet4 struct {
   168  	Family uint16
   169  	Port   uint16
   170  	Addr   [4]byte /* in_addr */
   171  	Zero   [8]uint8
   172  }
   173  
   174  type RawSockaddrInet6 struct {
   175  	Family   uint16
   176  	Port     uint16
   177  	Flowinfo uint32
   178  	Addr     [16]byte /* in6_addr */
   179  	Scope_id uint32
   180  }
   181  
   182  type RawSockaddrUnix struct {
   183  	Family uint16
   184  	Path   [108]int8
   185  }
   186  
   187  type RawSockaddrLinklayer struct {
   188  	Family   uint16
   189  	Protocol uint16
   190  	Ifindex  int32
   191  	Hatype   uint16
   192  	Pkttype  uint8
   193  	Halen    uint8
   194  	Addr     [8]uint8
   195  }
   196  
   197  type RawSockaddrNetlink struct {
   198  	Family uint16
   199  	Pad    uint16
   200  	Pid    uint32
   201  	Groups uint32
   202  }
   203  
   204  type RawSockaddrHCI struct {
   205  	Family  uint16
   206  	Dev     uint16
   207  	Channel uint16
   208  }
   209  
   210  type RawSockaddrCAN struct {
   211  	Family    uint16
   212  	Pad_cgo_0 [2]byte
   213  	Ifindex   int32
   214  	Addr      [8]byte
   215  }
   216  
   217  type RawSockaddr struct {
   218  	Family uint16
   219  	Data   [14]uint8
   220  }
   221  
   222  type RawSockaddrAny struct {
   223  	Addr RawSockaddr
   224  	Pad  [96]uint8
   225  }
   226  
   227  type _Socklen uint32
   228  
   229  type Linger struct {
   230  	Onoff  int32
   231  	Linger int32
   232  }
   233  
   234  type Iovec struct {
   235  	Base *byte
   236  	Len  uint64
   237  }
   238  
   239  type IPMreq struct {
   240  	Multiaddr [4]byte /* in_addr */
   241  	Interface [4]byte /* in_addr */
   242  }
   243  
   244  type IPMreqn struct {
   245  	Multiaddr [4]byte /* in_addr */
   246  	Address   [4]byte /* in_addr */
   247  	Ifindex   int32
   248  }
   249  
   250  type IPv6Mreq struct {
   251  	Multiaddr [16]byte /* in6_addr */
   252  	Interface uint32
   253  }
   254  
   255  type Msghdr struct {
   256  	Name       *byte
   257  	Namelen    uint32
   258  	Pad_cgo_0  [4]byte
   259  	Iov        *Iovec
   260  	Iovlen     uint64
   261  	Control    *byte
   262  	Controllen uint64
   263  	Flags      int32
   264  	Pad_cgo_1  [4]byte
   265  }
   266  
   267  type Cmsghdr struct {
   268  	Len          uint64
   269  	Level        int32
   270  	Type         int32
   271  	X__cmsg_data [0]uint8
   272  }
   273  
   274  type Inet4Pktinfo struct {
   275  	Ifindex  int32
   276  	Spec_dst [4]byte /* in_addr */
   277  	Addr     [4]byte /* in_addr */
   278  }
   279  
   280  type Inet6Pktinfo struct {
   281  	Addr    [16]byte /* in6_addr */
   282  	Ifindex uint32
   283  }
   284  
   285  type IPv6MTUInfo struct {
   286  	Addr RawSockaddrInet6
   287  	Mtu  uint32
   288  }
   289  
   290  type ICMPv6Filter struct {
   291  	Data [8]uint32
   292  }
   293  
   294  type Ucred struct {
   295  	Pid int32
   296  	Uid uint32
   297  	Gid uint32
   298  }
   299  
   300  type TCPInfo struct {
   301  	State          uint8
   302  	Ca_state       uint8
   303  	Retransmits    uint8
   304  	Probes         uint8
   305  	Backoff        uint8
   306  	Options        uint8
   307  	Pad_cgo_0      [2]byte
   308  	Rto            uint32
   309  	Ato            uint32
   310  	Snd_mss        uint32
   311  	Rcv_mss        uint32
   312  	Unacked        uint32
   313  	Sacked         uint32
   314  	Lost           uint32
   315  	Retrans        uint32
   316  	Fackets        uint32
   317  	Last_data_sent uint32
   318  	Last_ack_sent  uint32
   319  	Last_data_recv uint32
   320  	Last_ack_recv  uint32
   321  	Pmtu           uint32
   322  	Rcv_ssthresh   uint32
   323  	Rtt            uint32
   324  	Rttvar         uint32
   325  	Snd_ssthresh   uint32
   326  	Snd_cwnd       uint32
   327  	Advmss         uint32
   328  	Reordering     uint32
   329  	Rcv_rtt        uint32
   330  	Rcv_space      uint32
   331  	Total_retrans  uint32
   332  }
   333  
   334  const (
   335  	SizeofSockaddrInet4     = 0x10
   336  	SizeofSockaddrInet6     = 0x1c
   337  	SizeofSockaddrAny       = 0x70
   338  	SizeofSockaddrUnix      = 0x6e
   339  	SizeofSockaddrLinklayer = 0x14
   340  	SizeofSockaddrNetlink   = 0xc
   341  	SizeofSockaddrHCI       = 0x6
   342  	SizeofSockaddrCAN       = 0x10
   343  	SizeofLinger            = 0x8
   344  	SizeofIPMreq            = 0x8
   345  	SizeofIPMreqn           = 0xc
   346  	SizeofIPv6Mreq          = 0x14
   347  	SizeofMsghdr            = 0x38
   348  	SizeofCmsghdr           = 0x10
   349  	SizeofInet4Pktinfo      = 0xc
   350  	SizeofInet6Pktinfo      = 0x14
   351  	SizeofIPv6MTUInfo       = 0x20
   352  	SizeofICMPv6Filter      = 0x20
   353  	SizeofUcred             = 0xc
   354  	SizeofTCPInfo           = 0x68
   355  )
   356  
   357  const (
   358  	IFA_UNSPEC          = 0x0
   359  	IFA_ADDRESS         = 0x1
   360  	IFA_LOCAL           = 0x2
   361  	IFA_LABEL           = 0x3
   362  	IFA_BROADCAST       = 0x4
   363  	IFA_ANYCAST         = 0x5
   364  	IFA_CACHEINFO       = 0x6
   365  	IFA_MULTICAST       = 0x7
   366  	IFLA_UNSPEC         = 0x0
   367  	IFLA_ADDRESS        = 0x1
   368  	IFLA_BROADCAST      = 0x2
   369  	IFLA_IFNAME         = 0x3
   370  	IFLA_MTU            = 0x4
   371  	IFLA_LINK           = 0x5
   372  	IFLA_QDISC          = 0x6
   373  	IFLA_STATS          = 0x7
   374  	IFLA_COST           = 0x8
   375  	IFLA_PRIORITY       = 0x9
   376  	IFLA_MASTER         = 0xa
   377  	IFLA_WIRELESS       = 0xb
   378  	IFLA_PROTINFO       = 0xc
   379  	IFLA_TXQLEN         = 0xd
   380  	IFLA_MAP            = 0xe
   381  	IFLA_WEIGHT         = 0xf
   382  	IFLA_OPERSTATE      = 0x10
   383  	IFLA_LINKMODE       = 0x11
   384  	IFLA_LINKINFO       = 0x12
   385  	IFLA_NET_NS_PID     = 0x13
   386  	IFLA_IFALIAS        = 0x14
   387  	IFLA_MAX            = 0x23
   388  	RT_SCOPE_UNIVERSE   = 0x0
   389  	RT_SCOPE_SITE       = 0xc8
   390  	RT_SCOPE_LINK       = 0xfd
   391  	RT_SCOPE_HOST       = 0xfe
   392  	RT_SCOPE_NOWHERE    = 0xff
   393  	RT_TABLE_UNSPEC     = 0x0
   394  	RT_TABLE_COMPAT     = 0xfc
   395  	RT_TABLE_DEFAULT    = 0xfd
   396  	RT_TABLE_MAIN       = 0xfe
   397  	RT_TABLE_LOCAL      = 0xff
   398  	RT_TABLE_MAX        = 0xffffffff
   399  	RTA_UNSPEC          = 0x0
   400  	RTA_DST             = 0x1
   401  	RTA_SRC             = 0x2
   402  	RTA_IIF             = 0x3
   403  	RTA_OIF             = 0x4
   404  	RTA_GATEWAY         = 0x5
   405  	RTA_PRIORITY        = 0x6
   406  	RTA_PREFSRC         = 0x7
   407  	RTA_METRICS         = 0x8
   408  	RTA_MULTIPATH       = 0x9
   409  	RTA_FLOW            = 0xb
   410  	RTA_CACHEINFO       = 0xc
   411  	RTA_TABLE           = 0xf
   412  	RTN_UNSPEC          = 0x0
   413  	RTN_UNICAST         = 0x1
   414  	RTN_LOCAL           = 0x2
   415  	RTN_BROADCAST       = 0x3
   416  	RTN_ANYCAST         = 0x4
   417  	RTN_MULTICAST       = 0x5
   418  	RTN_BLACKHOLE       = 0x6
   419  	RTN_UNREACHABLE     = 0x7
   420  	RTN_PROHIBIT        = 0x8
   421  	RTN_THROW           = 0x9
   422  	RTN_NAT             = 0xa
   423  	RTN_XRESOLVE        = 0xb
   424  	RTNLGRP_NONE        = 0x0
   425  	RTNLGRP_LINK        = 0x1
   426  	RTNLGRP_NOTIFY      = 0x2
   427  	RTNLGRP_NEIGH       = 0x3
   428  	RTNLGRP_TC          = 0x4
   429  	RTNLGRP_IPV4_IFADDR = 0x5
   430  	RTNLGRP_IPV4_MROUTE = 0x6
   431  	RTNLGRP_IPV4_ROUTE  = 0x7
   432  	RTNLGRP_IPV4_RULE   = 0x8
   433  	RTNLGRP_IPV6_IFADDR = 0x9
   434  	RTNLGRP_IPV6_MROUTE = 0xa
   435  	RTNLGRP_IPV6_ROUTE  = 0xb
   436  	RTNLGRP_IPV6_IFINFO = 0xc
   437  	RTNLGRP_IPV6_PREFIX = 0x12
   438  	RTNLGRP_IPV6_RULE   = 0x13
   439  	RTNLGRP_ND_USEROPT  = 0x14
   440  	SizeofNlMsghdr      = 0x10
   441  	SizeofNlMsgerr      = 0x14
   442  	SizeofRtGenmsg      = 0x1
   443  	SizeofNlAttr        = 0x4
   444  	SizeofRtAttr        = 0x4
   445  	SizeofIfInfomsg     = 0x10
   446  	SizeofIfAddrmsg     = 0x8
   447  	SizeofRtMsg         = 0xc
   448  	SizeofRtNexthop     = 0x8
   449  )
   450  
   451  type NlMsghdr struct {
   452  	Len   uint32
   453  	Type  uint16
   454  	Flags uint16
   455  	Seq   uint32
   456  	Pid   uint32
   457  }
   458  
   459  type NlMsgerr struct {
   460  	Error int32
   461  	Msg   NlMsghdr
   462  }
   463  
   464  type RtGenmsg struct {
   465  	Family uint8
   466  }
   467  
   468  type NlAttr struct {
   469  	Len  uint16
   470  	Type uint16
   471  }
   472  
   473  type RtAttr struct {
   474  	Len  uint16
   475  	Type uint16
   476  }
   477  
   478  type IfInfomsg struct {
   479  	Family     uint8
   480  	X__ifi_pad uint8
   481  	Type       uint16
   482  	Index      int32
   483  	Flags      uint32
   484  	Change     uint32
   485  }
   486  
   487  type IfAddrmsg struct {
   488  	Family    uint8
   489  	Prefixlen uint8
   490  	Flags     uint8
   491  	Scope     uint8
   492  	Index     uint32
   493  }
   494  
   495  type RtMsg struct {
   496  	Family   uint8
   497  	Dst_len  uint8
   498  	Src_len  uint8
   499  	Tos      uint8
   500  	Table    uint8
   501  	Protocol uint8
   502  	Scope    uint8
   503  	Type     uint8
   504  	Flags    uint32
   505  }
   506  
   507  type RtNexthop struct {
   508  	Len     uint16
   509  	Flags   uint8
   510  	Hops    uint8
   511  	Ifindex int32
   512  }
   513  
   514  const (
   515  	SizeofSockFilter = 0x8
   516  	SizeofSockFprog  = 0x10
   517  )
   518  
   519  type SockFilter struct {
   520  	Code uint16
   521  	Jt   uint8
   522  	Jf   uint8
   523  	K    uint32
   524  }
   525  
   526  type SockFprog struct {
   527  	Len       uint16
   528  	Pad_cgo_0 [6]byte
   529  	Filter    *SockFilter
   530  }
   531  
   532  type InotifyEvent struct {
   533  	Wd     int32
   534  	Mask   uint32
   535  	Cookie uint32
   536  	Len    uint32
   537  	Name   [0]uint8
   538  }
   539  
   540  const SizeofInotifyEvent = 0x10
   541  
   542  type PtraceRegs struct {
   543  	Gpr       [32]uint64
   544  	Nip       uint64
   545  	Msr       uint64
   546  	Orig_gpr3 uint64
   547  	Ctr       uint64
   548  	Link      uint64
   549  	Xer       uint64
   550  	Ccr       uint64
   551  	Softe     uint64
   552  	Trap      uint64
   553  	Dar       uint64
   554  	Dsisr     uint64
   555  	Result    uint64
   556  }
   557  
   558  type FdSet struct {
   559  	Bits [16]int64
   560  }
   561  
   562  type Sysinfo_t struct {
   563  	Uptime    int64
   564  	Loads     [3]uint64
   565  	Totalram  uint64
   566  	Freeram   uint64
   567  	Sharedram uint64
   568  	Bufferram uint64
   569  	Totalswap uint64
   570  	Freeswap  uint64
   571  	Procs     uint16
   572  	Pad       uint16
   573  	Pad_cgo_0 [4]byte
   574  	Totalhigh uint64
   575  	Freehigh  uint64
   576  	Unit      uint32
   577  	X_f       [0]uint8
   578  	Pad_cgo_1 [4]byte
   579  }
   580  
   581  type Utsname struct {
   582  	Sysname    [65]uint8
   583  	Nodename   [65]uint8
   584  	Release    [65]uint8
   585  	Version    [65]uint8
   586  	Machine    [65]uint8
   587  	Domainname [65]uint8
   588  }
   589  
   590  type Ustat_t struct {
   591  	Tfree     int32
   592  	Pad_cgo_0 [4]byte
   593  	Tinode    uint64
   594  	Fname     [6]uint8
   595  	Fpack     [6]uint8
   596  	Pad_cgo_1 [4]byte
   597  }
   598  
   599  type EpollEvent struct {
   600  	Events  uint32
   601  	X_padFd int32
   602  	Fd      int32
   603  	Pad     int32
   604  }
   605  
   606  const (
   607  	AT_FDCWD            = -0x64
   608  	AT_REMOVEDIR        = 0x200
   609  	AT_SYMLINK_FOLLOW   = 0x400
   610  	AT_SYMLINK_NOFOLLOW = 0x100
   611  )
   612  
   613  type PollFd struct {
   614  	Fd      int32
   615  	Events  int16
   616  	Revents int16
   617  }
   618  
   619  const (
   620  	POLLIN    = 0x1
   621  	POLLPRI   = 0x2
   622  	POLLOUT   = 0x4
   623  	POLLRDHUP = 0x2000
   624  	POLLERR   = 0x8
   625  	POLLHUP   = 0x10
   626  	POLLNVAL  = 0x20
   627  )
   628  
   629  type Sigset_t struct {
   630  	X__val [16]uint64
   631  }
   632  
   633  type Termios struct {
   634  	Iflag  uint32
   635  	Oflag  uint32
   636  	Cflag  uint32
   637  	Lflag  uint32
   638  	Cc     [19]uint8
   639  	Line   uint8
   640  	Ispeed uint32
   641  	Ospeed uint32
   642  }