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

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