github.com/kooksee/kchain@v0.0.0-20180613035215-4aef51c04906/src/golang.org/x/sys/unix/ztypes_linux_arm64.go (about)

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