...
Run Format

Source file src/syscall/ztypes_linux_ppc64le.go

Documentation: syscall

     1  // Created by cgo -godefs - DO NOT EDIT
     2  // cgo -godefs types_linux.go
     3  
     4  // +build ppc64le,linux
     5  
     6  package syscall
     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  	X__glibc_reserved4 uint64
   117  	X__glibc_reserved5 uint64
   118  	X__glibc_reserved6 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 RawSockaddrInet4 struct {
   160  	Family uint16
   161  	Port   uint16
   162  	Addr   [4]byte /* in_addr */
   163  	Zero   [8]uint8
   164  }
   165  
   166  type RawSockaddrInet6 struct {
   167  	Family   uint16
   168  	Port     uint16
   169  	Flowinfo uint32
   170  	Addr     [16]byte /* in6_addr */
   171  	Scope_id uint32
   172  }
   173  
   174  type RawSockaddrUnix struct {
   175  	Family uint16
   176  	Path   [108]int8
   177  }
   178  
   179  type RawSockaddrLinklayer struct {
   180  	Family   uint16
   181  	Protocol uint16
   182  	Ifindex  int32
   183  	Hatype   uint16
   184  	Pkttype  uint8
   185  	Halen    uint8
   186  	Addr     [8]uint8
   187  }
   188  
   189  type RawSockaddrNetlink struct {
   190  	Family uint16
   191  	Pad    uint16
   192  	Pid    uint32
   193  	Groups uint32
   194  }
   195  
   196  type RawSockaddr struct {
   197  	Family uint16
   198  	Data   [14]uint8
   199  }
   200  
   201  type RawSockaddrAny struct {
   202  	Addr RawSockaddr
   203  	Pad  [96]uint8
   204  }
   205  
   206  type _Socklen uint32
   207  
   208  type Linger struct {
   209  	Onoff  int32
   210  	Linger int32
   211  }
   212  
   213  type Iovec struct {
   214  	Base *byte
   215  	Len  uint64
   216  }
   217  
   218  type IPMreq struct {
   219  	Multiaddr [4]byte /* in_addr */
   220  	Interface [4]byte /* in_addr */
   221  }
   222  
   223  type IPMreqn struct {
   224  	Multiaddr [4]byte /* in_addr */
   225  	Address   [4]byte /* in_addr */
   226  	Ifindex   int32
   227  }
   228  
   229  type IPv6Mreq struct {
   230  	Multiaddr [16]byte /* in6_addr */
   231  	Interface uint32
   232  }
   233  
   234  type Msghdr struct {
   235  	Name       *byte
   236  	Namelen    uint32
   237  	Pad_cgo_0  [4]byte
   238  	Iov        *Iovec
   239  	Iovlen     uint64
   240  	Control    *byte
   241  	Controllen uint64
   242  	Flags      int32
   243  	Pad_cgo_1  [4]byte
   244  }
   245  
   246  type Cmsghdr struct {
   247  	Len   uint64
   248  	Level int32
   249  	Type  int32
   250  }
   251  
   252  type Inet4Pktinfo struct {
   253  	Ifindex  int32
   254  	Spec_dst [4]byte /* in_addr */
   255  	Addr     [4]byte /* in_addr */
   256  }
   257  
   258  type Inet6Pktinfo struct {
   259  	Addr    [16]byte /* in6_addr */
   260  	Ifindex uint32
   261  }
   262  
   263  type IPv6MTUInfo struct {
   264  	Addr RawSockaddrInet6
   265  	Mtu  uint32
   266  }
   267  
   268  type ICMPv6Filter struct {
   269  	Data [8]uint32
   270  }
   271  
   272  type Ucred struct {
   273  	Pid int32
   274  	Uid uint32
   275  	Gid uint32
   276  }
   277  
   278  type TCPInfo struct {
   279  	State          uint8
   280  	Ca_state       uint8
   281  	Retransmits    uint8
   282  	Probes         uint8
   283  	Backoff        uint8
   284  	Options        uint8
   285  	Pad_cgo_0      [2]byte
   286  	Rto            uint32
   287  	Ato            uint32
   288  	Snd_mss        uint32
   289  	Rcv_mss        uint32
   290  	Unacked        uint32
   291  	Sacked         uint32
   292  	Lost           uint32
   293  	Retrans        uint32
   294  	Fackets        uint32
   295  	Last_data_sent uint32
   296  	Last_ack_sent  uint32
   297  	Last_data_recv uint32
   298  	Last_ack_recv  uint32
   299  	Pmtu           uint32
   300  	Rcv_ssthresh   uint32
   301  	Rtt            uint32
   302  	Rttvar         uint32
   303  	Snd_ssthresh   uint32
   304  	Snd_cwnd       uint32
   305  	Advmss         uint32
   306  	Reordering     uint32
   307  	Rcv_rtt        uint32
   308  	Rcv_space      uint32
   309  	Total_retrans  uint32
   310  }
   311  
   312  const (
   313  	SizeofSockaddrInet4     = 0x10
   314  	SizeofSockaddrInet6     = 0x1c
   315  	SizeofSockaddrAny       = 0x70
   316  	SizeofSockaddrUnix      = 0x6e
   317  	SizeofSockaddrLinklayer = 0x14
   318  	SizeofSockaddrNetlink   = 0xc
   319  	SizeofLinger            = 0x8
   320  	SizeofIPMreq            = 0x8
   321  	SizeofIPMreqn           = 0xc
   322  	SizeofIPv6Mreq          = 0x14
   323  	SizeofMsghdr            = 0x38
   324  	SizeofCmsghdr           = 0x10
   325  	SizeofInet4Pktinfo      = 0xc
   326  	SizeofInet6Pktinfo      = 0x14
   327  	SizeofIPv6MTUInfo       = 0x20
   328  	SizeofICMPv6Filter      = 0x20
   329  	SizeofUcred             = 0xc
   330  	SizeofTCPInfo           = 0x68
   331  )
   332  
   333  const (
   334  	IFA_UNSPEC          = 0x0
   335  	IFA_ADDRESS         = 0x1
   336  	IFA_LOCAL           = 0x2
   337  	IFA_LABEL           = 0x3
   338  	IFA_BROADCAST       = 0x4
   339  	IFA_ANYCAST         = 0x5
   340  	IFA_CACHEINFO       = 0x6
   341  	IFA_MULTICAST       = 0x7
   342  	IFLA_UNSPEC         = 0x0
   343  	IFLA_ADDRESS        = 0x1
   344  	IFLA_BROADCAST      = 0x2
   345  	IFLA_IFNAME         = 0x3
   346  	IFLA_MTU            = 0x4
   347  	IFLA_LINK           = 0x5
   348  	IFLA_QDISC          = 0x6
   349  	IFLA_STATS          = 0x7
   350  	IFLA_COST           = 0x8
   351  	IFLA_PRIORITY       = 0x9
   352  	IFLA_MASTER         = 0xa
   353  	IFLA_WIRELESS       = 0xb
   354  	IFLA_PROTINFO       = 0xc
   355  	IFLA_TXQLEN         = 0xd
   356  	IFLA_MAP            = 0xe
   357  	IFLA_WEIGHT         = 0xf
   358  	IFLA_OPERSTATE      = 0x10
   359  	IFLA_LINKMODE       = 0x11
   360  	IFLA_LINKINFO       = 0x12
   361  	IFLA_NET_NS_PID     = 0x13
   362  	IFLA_IFALIAS        = 0x14
   363  	IFLA_MAX            = 0x22
   364  	RT_SCOPE_UNIVERSE   = 0x0
   365  	RT_SCOPE_SITE       = 0xc8
   366  	RT_SCOPE_LINK       = 0xfd
   367  	RT_SCOPE_HOST       = 0xfe
   368  	RT_SCOPE_NOWHERE    = 0xff
   369  	RT_TABLE_UNSPEC     = 0x0
   370  	RT_TABLE_COMPAT     = 0xfc
   371  	RT_TABLE_DEFAULT    = 0xfd
   372  	RT_TABLE_MAIN       = 0xfe
   373  	RT_TABLE_LOCAL      = 0xff
   374  	RT_TABLE_MAX        = 0xffffffff
   375  	RTA_UNSPEC          = 0x0
   376  	RTA_DST             = 0x1
   377  	RTA_SRC             = 0x2
   378  	RTA_IIF             = 0x3
   379  	RTA_OIF             = 0x4
   380  	RTA_GATEWAY         = 0x5
   381  	RTA_PRIORITY        = 0x6
   382  	RTA_PREFSRC         = 0x7
   383  	RTA_METRICS         = 0x8
   384  	RTA_MULTIPATH       = 0x9
   385  	RTA_FLOW            = 0xb
   386  	RTA_CACHEINFO       = 0xc
   387  	RTA_TABLE           = 0xf
   388  	RTN_UNSPEC          = 0x0
   389  	RTN_UNICAST         = 0x1
   390  	RTN_LOCAL           = 0x2
   391  	RTN_BROADCAST       = 0x3
   392  	RTN_ANYCAST         = 0x4
   393  	RTN_MULTICAST       = 0x5
   394  	RTN_BLACKHOLE       = 0x6
   395  	RTN_UNREACHABLE     = 0x7
   396  	RTN_PROHIBIT        = 0x8
   397  	RTN_THROW           = 0x9
   398  	RTN_NAT             = 0xa
   399  	RTN_XRESOLVE        = 0xb
   400  	RTNLGRP_NONE        = 0x0
   401  	RTNLGRP_LINK        = 0x1
   402  	RTNLGRP_NOTIFY      = 0x2
   403  	RTNLGRP_NEIGH       = 0x3
   404  	RTNLGRP_TC          = 0x4
   405  	RTNLGRP_IPV4_IFADDR = 0x5
   406  	RTNLGRP_IPV4_MROUTE = 0x6
   407  	RTNLGRP_IPV4_ROUTE  = 0x7
   408  	RTNLGRP_IPV4_RULE   = 0x8
   409  	RTNLGRP_IPV6_IFADDR = 0x9
   410  	RTNLGRP_IPV6_MROUTE = 0xa
   411  	RTNLGRP_IPV6_ROUTE  = 0xb
   412  	RTNLGRP_IPV6_IFINFO = 0xc
   413  	RTNLGRP_IPV6_PREFIX = 0x12
   414  	RTNLGRP_IPV6_RULE   = 0x13
   415  	RTNLGRP_ND_USEROPT  = 0x14
   416  	SizeofNlMsghdr      = 0x10
   417  	SizeofNlMsgerr      = 0x14
   418  	SizeofRtGenmsg      = 0x1
   419  	SizeofNlAttr        = 0x4
   420  	SizeofRtAttr        = 0x4
   421  	SizeofIfInfomsg     = 0x10
   422  	SizeofIfAddrmsg     = 0x8
   423  	SizeofRtMsg         = 0xc
   424  	SizeofRtNexthop     = 0x8
   425  )
   426  
   427  type NlMsghdr struct {
   428  	Len   uint32
   429  	Type  uint16
   430  	Flags uint16
   431  	Seq   uint32
   432  	Pid   uint32
   433  }
   434  
   435  type NlMsgerr struct {
   436  	Error int32
   437  	Msg   NlMsghdr
   438  }
   439  
   440  type RtGenmsg struct {
   441  	Family uint8
   442  }
   443  
   444  type NlAttr struct {
   445  	Len  uint16
   446  	Type uint16
   447  }
   448  
   449  type RtAttr struct {
   450  	Len  uint16
   451  	Type uint16
   452  }
   453  
   454  type IfInfomsg struct {
   455  	Family     uint8
   456  	X__ifi_pad uint8
   457  	Type       uint16
   458  	Index      int32
   459  	Flags      uint32
   460  	Change     uint32
   461  }
   462  
   463  type IfAddrmsg struct {
   464  	Family    uint8
   465  	Prefixlen uint8
   466  	Flags     uint8
   467  	Scope     uint8
   468  	Index     uint32
   469  }
   470  
   471  type RtMsg struct {
   472  	Family   uint8
   473  	Dst_len  uint8
   474  	Src_len  uint8
   475  	Tos      uint8
   476  	Table    uint8
   477  	Protocol uint8
   478  	Scope    uint8
   479  	Type     uint8
   480  	Flags    uint32
   481  }
   482  
   483  type RtNexthop struct {
   484  	Len     uint16
   485  	Flags   uint8
   486  	Hops    uint8
   487  	Ifindex int32
   488  }
   489  
   490  const (
   491  	SizeofSockFilter = 0x8
   492  	SizeofSockFprog  = 0x10
   493  )
   494  
   495  type SockFilter struct {
   496  	Code uint16
   497  	Jt   uint8
   498  	Jf   uint8
   499  	K    uint32
   500  }
   501  
   502  type SockFprog struct {
   503  	Len       uint16
   504  	Pad_cgo_0 [6]byte
   505  	Filter    *SockFilter
   506  }
   507  
   508  type InotifyEvent struct {
   509  	Wd     int32
   510  	Mask   uint32
   511  	Cookie uint32
   512  	Len    uint32
   513  	Name   [0]uint8
   514  }
   515  
   516  const SizeofInotifyEvent = 0x10
   517  
   518  type PtraceRegs struct {
   519  	Gpr       [32]uint64
   520  	Nip       uint64
   521  	Msr       uint64
   522  	Orig_gpr3 uint64
   523  	Ctr       uint64
   524  	Link      uint64
   525  	Xer       uint64
   526  	Ccr       uint64
   527  	Softe     uint64
   528  	Trap      uint64
   529  	Dar       uint64
   530  	Dsisr     uint64
   531  	Result    uint64
   532  }
   533  
   534  type FdSet struct {
   535  	Bits [16]int64
   536  }
   537  
   538  type Sysinfo_t struct {
   539  	Uptime    int64
   540  	Loads     [3]uint64
   541  	Totalram  uint64
   542  	Freeram   uint64
   543  	Sharedram uint64
   544  	Bufferram uint64
   545  	Totalswap uint64
   546  	Freeswap  uint64
   547  	Procs     uint16
   548  	Pad       uint16
   549  	Pad_cgo_0 [4]byte
   550  	Totalhigh uint64
   551  	Freehigh  uint64
   552  	Unit      uint32
   553  	X_f       [0]uint8
   554  	Pad_cgo_1 [4]byte
   555  }
   556  
   557  type Utsname struct {
   558  	Sysname    [65]uint8
   559  	Nodename   [65]uint8
   560  	Release    [65]uint8
   561  	Version    [65]uint8
   562  	Machine    [65]uint8
   563  	Domainname [65]uint8
   564  }
   565  
   566  type Ustat_t struct {
   567  	Tfree     int32
   568  	Pad_cgo_0 [4]byte
   569  	Tinode    uint64
   570  	Fname     [6]uint8
   571  	Fpack     [6]uint8
   572  	Pad_cgo_1 [4]byte
   573  }
   574  
   575  type EpollEvent struct {
   576  	Events  uint32
   577  	X_padFd int32
   578  	Fd      int32
   579  	Pad     int32
   580  }
   581  
   582  const (
   583  	_AT_FDCWD            = -0x64
   584  	_AT_REMOVEDIR        = 0x200
   585  	_AT_SYMLINK_NOFOLLOW = 0x100
   586  	_AT_EACCESS          = 0x200
   587  )
   588  
   589  type Termios struct {
   590  	Iflag     uint32
   591  	Oflag     uint32
   592  	Cflag     uint32
   593  	Lflag     uint32
   594  	Line      uint8
   595  	Cc        [32]uint8
   596  	Pad_cgo_0 [3]byte
   597  	Ispeed    uint32
   598  	Ospeed    uint32
   599  }
   600  
   601  const (
   602  	IUCLC  = 0x1000
   603  	OLCUC  = 0x4
   604  	TCGETS = 0x402c7413
   605  	TCSETS = 0x802c7414
   606  	XCASE  = 0x4000
   607  )
   608  

View as plain text