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