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