github.com/kooksee/kchain@v0.0.0-20180613035215-4aef51c04906/src/golang.org/x/sys/unix/ztypes_linux_arm.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 arm,linux
     5  
     6  package unix
     7  
     8  const (
     9  	sizeofPtr      = 0x4
    10  	sizeofShort    = 0x2
    11  	sizeofInt      = 0x4
    12  	sizeofLong     = 0x4
    13  	sizeofLongLong = 0x8
    14  	PathMax        = 0x1000
    15  )
    16  
    17  type (
    18  	_C_short     int16
    19  	_C_int       int32
    20  	_C_long      int32
    21  	_C_long_long int64
    22  )
    23  
    24  type Timespec struct {
    25  	Sec  int32
    26  	Nsec int32
    27  }
    28  
    29  type Timeval struct {
    30  	Sec  int32
    31  	Usec int32
    32  }
    33  
    34  type Timex struct {
    35  	Modes     uint32
    36  	Offset    int32
    37  	Freq      int32
    38  	Maxerror  int32
    39  	Esterror  int32
    40  	Status    int32
    41  	Constant  int32
    42  	Precision int32
    43  	Tolerance int32
    44  	Time      Timeval
    45  	Tick      int32
    46  	Ppsfreq   int32
    47  	Jitter    int32
    48  	Shift     int32
    49  	Stabil    int32
    50  	Jitcnt    int32
    51  	Calcnt    int32
    52  	Errcnt    int32
    53  	Stbcnt    int32
    54  	Tai       int32
    55  	Pad_cgo_0 [44]byte
    56  }
    57  
    58  type Time_t int32
    59  
    60  type Tms struct {
    61  	Utime  int32
    62  	Stime  int32
    63  	Cutime int32
    64  	Cstime int32
    65  }
    66  
    67  type Utimbuf struct {
    68  	Actime  int32
    69  	Modtime int32
    70  }
    71  
    72  type Rusage struct {
    73  	Utime    Timeval
    74  	Stime    Timeval
    75  	Maxrss   int32
    76  	Ixrss    int32
    77  	Idrss    int32
    78  	Isrss    int32
    79  	Minflt   int32
    80  	Majflt   int32
    81  	Nswap    int32
    82  	Inblock  int32
    83  	Oublock  int32
    84  	Msgsnd   int32
    85  	Msgrcv   int32
    86  	Nsignals int32
    87  	Nvcsw    int32
    88  	Nivcsw   int32
    89  }
    90  
    91  type Rlimit struct {
    92  	Cur uint64
    93  	Max uint64
    94  }
    95  
    96  type _Gid_t uint32
    97  
    98  type Stat_t struct {
    99  	Dev       uint64
   100  	X__pad1   uint16
   101  	Pad_cgo_0 [2]byte
   102  	X__st_ino uint32
   103  	Mode      uint32
   104  	Nlink     uint32
   105  	Uid       uint32
   106  	Gid       uint32
   107  	Rdev      uint64
   108  	X__pad2   uint16
   109  	Pad_cgo_1 [6]byte
   110  	Size      int64
   111  	Blksize   int32
   112  	Pad_cgo_2 [4]byte
   113  	Blocks    int64
   114  	Atim      Timespec
   115  	Mtim      Timespec
   116  	Ctim      Timespec
   117  	Ino       uint64
   118  }
   119  
   120  type Statfs_t struct {
   121  	Type      int32
   122  	Bsize     int32
   123  	Blocks    uint64
   124  	Bfree     uint64
   125  	Bavail    uint64
   126  	Files     uint64
   127  	Ffree     uint64
   128  	Fsid      Fsid
   129  	Namelen   int32
   130  	Frsize    int32
   131  	Flags     int32
   132  	Spare     [4]int32
   133  	Pad_cgo_0 [4]byte
   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  uint32
   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  	Iov        *Iovec
   296  	Iovlen     uint32
   297  	Control    *byte
   298  	Controllen uint32
   299  	Flags      int32
   300  }
   301  
   302  type Cmsghdr struct {
   303  	Len   uint32
   304  	Level int32
   305  	Type  int32
   306  }
   307  
   308  type Inet4Pktinfo struct {
   309  	Ifindex  int32
   310  	Spec_dst [4]byte /* in_addr */
   311  	Addr     [4]byte /* in_addr */
   312  }
   313  
   314  type Inet6Pktinfo struct {
   315  	Addr    [16]byte /* in6_addr */
   316  	Ifindex uint32
   317  }
   318  
   319  type IPv6MTUInfo struct {
   320  	Addr RawSockaddrInet6
   321  	Mtu  uint32
   322  }
   323  
   324  type ICMPv6Filter struct {
   325  	Data [8]uint32
   326  }
   327  
   328  type Ucred struct {
   329  	Pid int32
   330  	Uid uint32
   331  	Gid uint32
   332  }
   333  
   334  type TCPInfo struct {
   335  	State          uint8
   336  	Ca_state       uint8
   337  	Retransmits    uint8
   338  	Probes         uint8
   339  	Backoff        uint8
   340  	Options        uint8
   341  	Pad_cgo_0      [2]byte
   342  	Rto            uint32
   343  	Ato            uint32
   344  	Snd_mss        uint32
   345  	Rcv_mss        uint32
   346  	Unacked        uint32
   347  	Sacked         uint32
   348  	Lost           uint32
   349  	Retrans        uint32
   350  	Fackets        uint32
   351  	Last_data_sent uint32
   352  	Last_ack_sent  uint32
   353  	Last_data_recv uint32
   354  	Last_ack_recv  uint32
   355  	Pmtu           uint32
   356  	Rcv_ssthresh   uint32
   357  	Rtt            uint32
   358  	Rttvar         uint32
   359  	Snd_ssthresh   uint32
   360  	Snd_cwnd       uint32
   361  	Advmss         uint32
   362  	Reordering     uint32
   363  	Rcv_rtt        uint32
   364  	Rcv_space      uint32
   365  	Total_retrans  uint32
   366  }
   367  
   368  const (
   369  	SizeofSockaddrInet4     = 0x10
   370  	SizeofSockaddrInet6     = 0x1c
   371  	SizeofSockaddrAny       = 0x70
   372  	SizeofSockaddrUnix      = 0x6e
   373  	SizeofSockaddrLinklayer = 0x14
   374  	SizeofSockaddrNetlink   = 0xc
   375  	SizeofSockaddrHCI       = 0x6
   376  	SizeofSockaddrCAN       = 0x10
   377  	SizeofSockaddrALG       = 0x58
   378  	SizeofSockaddrVM        = 0x10
   379  	SizeofLinger            = 0x8
   380  	SizeofIPMreq            = 0x8
   381  	SizeofIPMreqn           = 0xc
   382  	SizeofIPv6Mreq          = 0x14
   383  	SizeofMsghdr            = 0x1c
   384  	SizeofCmsghdr           = 0xc
   385  	SizeofInet4Pktinfo      = 0xc
   386  	SizeofInet6Pktinfo      = 0x14
   387  	SizeofIPv6MTUInfo       = 0x20
   388  	SizeofICMPv6Filter      = 0x20
   389  	SizeofUcred             = 0xc
   390  	SizeofTCPInfo           = 0x68
   391  )
   392  
   393  const (
   394  	IFA_UNSPEC          = 0x0
   395  	IFA_ADDRESS         = 0x1
   396  	IFA_LOCAL           = 0x2
   397  	IFA_LABEL           = 0x3
   398  	IFA_BROADCAST       = 0x4
   399  	IFA_ANYCAST         = 0x5
   400  	IFA_CACHEINFO       = 0x6
   401  	IFA_MULTICAST       = 0x7
   402  	IFLA_UNSPEC         = 0x0
   403  	IFLA_ADDRESS        = 0x1
   404  	IFLA_BROADCAST      = 0x2
   405  	IFLA_IFNAME         = 0x3
   406  	IFLA_MTU            = 0x4
   407  	IFLA_LINK           = 0x5
   408  	IFLA_QDISC          = 0x6
   409  	IFLA_STATS          = 0x7
   410  	IFLA_COST           = 0x8
   411  	IFLA_PRIORITY       = 0x9
   412  	IFLA_MASTER         = 0xa
   413  	IFLA_WIRELESS       = 0xb
   414  	IFLA_PROTINFO       = 0xc
   415  	IFLA_TXQLEN         = 0xd
   416  	IFLA_MAP            = 0xe
   417  	IFLA_WEIGHT         = 0xf
   418  	IFLA_OPERSTATE      = 0x10
   419  	IFLA_LINKMODE       = 0x11
   420  	IFLA_LINKINFO       = 0x12
   421  	IFLA_NET_NS_PID     = 0x13
   422  	IFLA_IFALIAS        = 0x14
   423  	IFLA_MAX            = 0x2b
   424  	RT_SCOPE_UNIVERSE   = 0x0
   425  	RT_SCOPE_SITE       = 0xc8
   426  	RT_SCOPE_LINK       = 0xfd
   427  	RT_SCOPE_HOST       = 0xfe
   428  	RT_SCOPE_NOWHERE    = 0xff
   429  	RT_TABLE_UNSPEC     = 0x0
   430  	RT_TABLE_COMPAT     = 0xfc
   431  	RT_TABLE_DEFAULT    = 0xfd
   432  	RT_TABLE_MAIN       = 0xfe
   433  	RT_TABLE_LOCAL      = 0xff
   434  	RT_TABLE_MAX        = 0xffffffff
   435  	RTA_UNSPEC          = 0x0
   436  	RTA_DST             = 0x1
   437  	RTA_SRC             = 0x2
   438  	RTA_IIF             = 0x3
   439  	RTA_OIF             = 0x4
   440  	RTA_GATEWAY         = 0x5
   441  	RTA_PRIORITY        = 0x6
   442  	RTA_PREFSRC         = 0x7
   443  	RTA_METRICS         = 0x8
   444  	RTA_MULTIPATH       = 0x9
   445  	RTA_FLOW            = 0xb
   446  	RTA_CACHEINFO       = 0xc
   447  	RTA_TABLE           = 0xf
   448  	RTN_UNSPEC          = 0x0
   449  	RTN_UNICAST         = 0x1
   450  	RTN_LOCAL           = 0x2
   451  	RTN_BROADCAST       = 0x3
   452  	RTN_ANYCAST         = 0x4
   453  	RTN_MULTICAST       = 0x5
   454  	RTN_BLACKHOLE       = 0x6
   455  	RTN_UNREACHABLE     = 0x7
   456  	RTN_PROHIBIT        = 0x8
   457  	RTN_THROW           = 0x9
   458  	RTN_NAT             = 0xa
   459  	RTN_XRESOLVE        = 0xb
   460  	RTNLGRP_NONE        = 0x0
   461  	RTNLGRP_LINK        = 0x1
   462  	RTNLGRP_NOTIFY      = 0x2
   463  	RTNLGRP_NEIGH       = 0x3
   464  	RTNLGRP_TC          = 0x4
   465  	RTNLGRP_IPV4_IFADDR = 0x5
   466  	RTNLGRP_IPV4_MROUTE = 0x6
   467  	RTNLGRP_IPV4_ROUTE  = 0x7
   468  	RTNLGRP_IPV4_RULE   = 0x8
   469  	RTNLGRP_IPV6_IFADDR = 0x9
   470  	RTNLGRP_IPV6_MROUTE = 0xa
   471  	RTNLGRP_IPV6_ROUTE  = 0xb
   472  	RTNLGRP_IPV6_IFINFO = 0xc
   473  	RTNLGRP_IPV6_PREFIX = 0x12
   474  	RTNLGRP_IPV6_RULE   = 0x13
   475  	RTNLGRP_ND_USEROPT  = 0x14
   476  	SizeofNlMsghdr      = 0x10
   477  	SizeofNlMsgerr      = 0x14
   478  	SizeofRtGenmsg      = 0x1
   479  	SizeofNlAttr        = 0x4
   480  	SizeofRtAttr        = 0x4
   481  	SizeofIfInfomsg     = 0x10
   482  	SizeofIfAddrmsg     = 0x8
   483  	SizeofRtMsg         = 0xc
   484  	SizeofRtNexthop     = 0x8
   485  )
   486  
   487  type NlMsghdr struct {
   488  	Len   uint32
   489  	Type  uint16
   490  	Flags uint16
   491  	Seq   uint32
   492  	Pid   uint32
   493  }
   494  
   495  type NlMsgerr struct {
   496  	Error int32
   497  	Msg   NlMsghdr
   498  }
   499  
   500  type RtGenmsg struct {
   501  	Family uint8
   502  }
   503  
   504  type NlAttr struct {
   505  	Len  uint16
   506  	Type uint16
   507  }
   508  
   509  type RtAttr struct {
   510  	Len  uint16
   511  	Type uint16
   512  }
   513  
   514  type IfInfomsg struct {
   515  	Family     uint8
   516  	X__ifi_pad uint8
   517  	Type       uint16
   518  	Index      int32
   519  	Flags      uint32
   520  	Change     uint32
   521  }
   522  
   523  type IfAddrmsg struct {
   524  	Family    uint8
   525  	Prefixlen uint8
   526  	Flags     uint8
   527  	Scope     uint8
   528  	Index     uint32
   529  }
   530  
   531  type RtMsg struct {
   532  	Family   uint8
   533  	Dst_len  uint8
   534  	Src_len  uint8
   535  	Tos      uint8
   536  	Table    uint8
   537  	Protocol uint8
   538  	Scope    uint8
   539  	Type     uint8
   540  	Flags    uint32
   541  }
   542  
   543  type RtNexthop struct {
   544  	Len     uint16
   545  	Flags   uint8
   546  	Hops    uint8
   547  	Ifindex int32
   548  }
   549  
   550  const (
   551  	SizeofSockFilter = 0x8
   552  	SizeofSockFprog  = 0x8
   553  )
   554  
   555  type SockFilter struct {
   556  	Code uint16
   557  	Jt   uint8
   558  	Jf   uint8
   559  	K    uint32
   560  }
   561  
   562  type SockFprog struct {
   563  	Len       uint16
   564  	Pad_cgo_0 [2]byte
   565  	Filter    *SockFilter
   566  }
   567  
   568  type InotifyEvent struct {
   569  	Wd     int32
   570  	Mask   uint32
   571  	Cookie uint32
   572  	Len    uint32
   573  }
   574  
   575  const SizeofInotifyEvent = 0x10
   576  
   577  type PtraceRegs struct {
   578  	Uregs [18]uint32
   579  }
   580  
   581  type FdSet struct {
   582  	Bits [32]int32
   583  }
   584  
   585  type Sysinfo_t struct {
   586  	Uptime    int32
   587  	Loads     [3]uint32
   588  	Totalram  uint32
   589  	Freeram   uint32
   590  	Sharedram uint32
   591  	Bufferram uint32
   592  	Totalswap uint32
   593  	Freeswap  uint32
   594  	Procs     uint16
   595  	Pad       uint16
   596  	Totalhigh uint32
   597  	Freehigh  uint32
   598  	Unit      uint32
   599  	X_f       [8]uint8
   600  }
   601  
   602  type Utsname struct {
   603  	Sysname    [65]uint8
   604  	Nodename   [65]uint8
   605  	Release    [65]uint8
   606  	Version    [65]uint8
   607  	Machine    [65]uint8
   608  	Domainname [65]uint8
   609  }
   610  
   611  type Ustat_t struct {
   612  	Tfree  int32
   613  	Tinode uint32
   614  	Fname  [6]uint8
   615  	Fpack  [6]uint8
   616  }
   617  
   618  type EpollEvent struct {
   619  	Events uint32
   620  	PadFd  int32
   621  	Fd     int32
   622  	Pad    int32
   623  }
   624  
   625  const (
   626  	AT_FDCWD            = -0x64
   627  	AT_REMOVEDIR        = 0x200
   628  	AT_SYMLINK_FOLLOW   = 0x400
   629  	AT_SYMLINK_NOFOLLOW = 0x100
   630  )
   631  
   632  type PollFd struct {
   633  	Fd      int32
   634  	Events  int16
   635  	Revents int16
   636  }
   637  
   638  const (
   639  	POLLIN    = 0x1
   640  	POLLPRI   = 0x2
   641  	POLLOUT   = 0x4
   642  	POLLRDHUP = 0x2000
   643  	POLLERR   = 0x8
   644  	POLLHUP   = 0x10
   645  	POLLNVAL  = 0x20
   646  )
   647  
   648  type Sigset_t struct {
   649  	X__val [32]uint32
   650  }
   651  
   652  const RNDGETENTCNT = 0x80045200
   653  
   654  const _SC_PAGESIZE = 0x1e
   655  
   656  type Termios struct {
   657  	Iflag  uint32
   658  	Oflag  uint32
   659  	Cflag  uint32
   660  	Lflag  uint32
   661  	Line   uint8
   662  	Cc     [19]uint8
   663  	Ispeed uint32
   664  	Ospeed uint32
   665  }