Source file src/syscall/ztypes_linux_arm.go

     1  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     2  // cgo -godefs types_linux.go | go run mkpost.go
     3  
     4  package syscall
     5  
     6  const (
     7  	sizeofPtr      = 0x4
     8  	sizeofShort    = 0x2
     9  	sizeofInt      = 0x4
    10  	sizeofLong     = 0x4
    11  	sizeofLongLong = 0x8
    12  	PathMax        = 0x1000
    13  )
    14  
    15  type (
    16  	_C_short     int16
    17  	_C_int       int32
    18  	_C_long      int32
    19  	_C_long_long int64
    20  )
    21  
    22  type Timespec struct {
    23  	Sec  int32
    24  	Nsec int32
    25  }
    26  
    27  type Timeval struct {
    28  	Sec  int32
    29  	Usec int32
    30  }
    31  
    32  type Timex struct {
    33  	Modes     uint32
    34  	Offset    int32
    35  	Freq      int32
    36  	Maxerror  int32
    37  	Esterror  int32
    38  	Status    int32
    39  	Constant  int32
    40  	Precision int32
    41  	Tolerance int32
    42  	Time      Timeval
    43  	Tick      int32
    44  	Ppsfreq   int32
    45  	Jitter    int32
    46  	Shift     int32
    47  	Stabil    int32
    48  	Jitcnt    int32
    49  	Calcnt    int32
    50  	Errcnt    int32
    51  	Stbcnt    int32
    52  	Tai       int32
    53  	Pad_cgo_0 [44]byte
    54  }
    55  
    56  type Time_t int32
    57  
    58  type Tms struct {
    59  	Utime  int32
    60  	Stime  int32
    61  	Cutime int32
    62  	Cstime int32
    63  }
    64  
    65  type Utimbuf struct {
    66  	Actime  int32
    67  	Modtime int32
    68  }
    69  
    70  type Rusage struct {
    71  	Utime    Timeval
    72  	Stime    Timeval
    73  	Maxrss   int32
    74  	Ixrss    int32
    75  	Idrss    int32
    76  	Isrss    int32
    77  	Minflt   int32
    78  	Majflt   int32
    79  	Nswap    int32
    80  	Inblock  int32
    81  	Oublock  int32
    82  	Msgsnd   int32
    83  	Msgrcv   int32
    84  	Nsignals int32
    85  	Nvcsw    int32
    86  	Nivcsw   int32
    87  }
    88  
    89  type Rlimit struct {
    90  	Cur uint64
    91  	Max uint64
    92  }
    93  
    94  type _Gid_t uint32
    95  
    96  type Stat_t struct {
    97  	Dev       uint64
    98  	X__pad1   uint16
    99  	Pad_cgo_0 [2]byte
   100  	X__st_ino uint32
   101  	Mode      uint32
   102  	Nlink     uint32
   103  	Uid       uint32
   104  	Gid       uint32
   105  	Rdev      uint64
   106  	X__pad2   uint16
   107  	Pad_cgo_1 [6]byte
   108  	Size      int64
   109  	Blksize   int32
   110  	Pad_cgo_2 [4]byte
   111  	Blocks    int64
   112  	Atim      Timespec
   113  	Mtim      Timespec
   114  	Ctim      Timespec
   115  	Ino       uint64
   116  }
   117  
   118  type Statfs_t struct {
   119  	Type      int32
   120  	Bsize     int32
   121  	Blocks    uint64
   122  	Bfree     uint64
   123  	Bavail    uint64
   124  	Files     uint64
   125  	Ffree     uint64
   126  	Fsid      Fsid
   127  	Namelen   int32
   128  	Frsize    int32
   129  	Flags     int32
   130  	Spare     [4]int32
   131  	Pad_cgo_0 [4]byte
   132  }
   133  
   134  type Dirent struct {
   135  	Ino       uint64
   136  	Off       int64
   137  	Reclen    uint16
   138  	Type      uint8
   139  	Name      [256]uint8
   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  type RawSockaddrInet4 struct {
   158  	Family uint16
   159  	Port   uint16
   160  	Addr   [4]byte /* in_addr */
   161  	Zero   [8]uint8
   162  }
   163  
   164  type RawSockaddrInet6 struct {
   165  	Family   uint16
   166  	Port     uint16
   167  	Flowinfo uint32
   168  	Addr     [16]byte /* in6_addr */
   169  	Scope_id uint32
   170  }
   171  
   172  type RawSockaddrUnix struct {
   173  	Family uint16
   174  	Path   [108]int8
   175  }
   176  
   177  type RawSockaddrLinklayer struct {
   178  	Family   uint16
   179  	Protocol uint16
   180  	Ifindex  int32
   181  	Hatype   uint16
   182  	Pkttype  uint8
   183  	Halen    uint8
   184  	Addr     [8]uint8
   185  }
   186  
   187  type RawSockaddrNetlink struct {
   188  	Family uint16
   189  	Pad    uint16
   190  	Pid    uint32
   191  	Groups uint32
   192  }
   193  
   194  type RawSockaddr struct {
   195  	Family uint16
   196  	Data   [14]uint8
   197  }
   198  
   199  type RawSockaddrAny struct {
   200  	Addr RawSockaddr
   201  	Pad  [96]uint8
   202  }
   203  
   204  type _Socklen uint32
   205  
   206  type Linger struct {
   207  	Onoff  int32
   208  	Linger int32
   209  }
   210  
   211  type Iovec struct {
   212  	Base *byte
   213  	Len  uint32
   214  }
   215  
   216  type IPMreq struct {
   217  	Multiaddr [4]byte /* in_addr */
   218  	Interface [4]byte /* in_addr */
   219  }
   220  
   221  type IPMreqn struct {
   222  	Multiaddr [4]byte /* in_addr */
   223  	Address   [4]byte /* in_addr */
   224  	Ifindex   int32
   225  }
   226  
   227  type IPv6Mreq struct {
   228  	Multiaddr [16]byte /* in6_addr */
   229  	Interface uint32
   230  }
   231  
   232  type Msghdr struct {
   233  	Name       *byte
   234  	Namelen    uint32
   235  	Iov        *Iovec
   236  	Iovlen     uint32
   237  	Control    *byte
   238  	Controllen uint32
   239  	Flags      int32
   240  }
   241  
   242  type Cmsghdr struct {
   243  	Len   uint32
   244  	Level int32
   245  	Type  int32
   246  }
   247  
   248  type Inet4Pktinfo struct {
   249  	Ifindex  int32
   250  	Spec_dst [4]byte /* in_addr */
   251  	Addr     [4]byte /* in_addr */
   252  }
   253  
   254  type Inet6Pktinfo struct {
   255  	Addr    [16]byte /* in6_addr */
   256  	Ifindex uint32
   257  }
   258  
   259  type IPv6MTUInfo struct {
   260  	Addr RawSockaddrInet6
   261  	Mtu  uint32
   262  }
   263  
   264  type ICMPv6Filter struct {
   265  	Data [8]uint32
   266  }
   267  
   268  type Ucred struct {
   269  	Pid int32
   270  	Uid uint32
   271  	Gid uint32
   272  }
   273  
   274  type TCPInfo struct {
   275  	State          uint8
   276  	Ca_state       uint8
   277  	Retransmits    uint8
   278  	Probes         uint8
   279  	Backoff        uint8
   280  	Options        uint8
   281  	Pad_cgo_0      [2]byte
   282  	Rto            uint32
   283  	Ato            uint32
   284  	Snd_mss        uint32
   285  	Rcv_mss        uint32
   286  	Unacked        uint32
   287  	Sacked         uint32
   288  	Lost           uint32
   289  	Retrans        uint32
   290  	Fackets        uint32
   291  	Last_data_sent uint32
   292  	Last_ack_sent  uint32
   293  	Last_data_recv uint32
   294  	Last_ack_recv  uint32
   295  	Pmtu           uint32
   296  	Rcv_ssthresh   uint32
   297  	Rtt            uint32
   298  	Rttvar         uint32
   299  	Snd_ssthresh   uint32
   300  	Snd_cwnd       uint32
   301  	Advmss         uint32
   302  	Reordering     uint32
   303  	Rcv_rtt        uint32
   304  	Rcv_space      uint32
   305  	Total_retrans  uint32
   306  }
   307  
   308  const (
   309  	SizeofSockaddrInet4     = 0x10
   310  	SizeofSockaddrInet6     = 0x1c
   311  	SizeofSockaddrAny       = 0x70
   312  	SizeofSockaddrUnix      = 0x6e
   313  	SizeofSockaddrLinklayer = 0x14
   314  	SizeofSockaddrNetlink   = 0xc
   315  	SizeofLinger            = 0x8
   316  	SizeofIPMreq            = 0x8
   317  	SizeofIPMreqn           = 0xc
   318  	SizeofIPv6Mreq          = 0x14
   319  	SizeofMsghdr            = 0x1c
   320  	SizeofCmsghdr           = 0xc
   321  	SizeofInet4Pktinfo      = 0xc
   322  	SizeofInet6Pktinfo      = 0x14
   323  	SizeofIPv6MTUInfo       = 0x20
   324  	SizeofICMPv6Filter      = 0x20
   325  	SizeofUcred             = 0xc
   326  	SizeofTCPInfo           = 0x68
   327  )
   328  
   329  const (
   330  	IFA_UNSPEC          = 0x0
   331  	IFA_ADDRESS         = 0x1
   332  	IFA_LOCAL           = 0x2
   333  	IFA_LABEL           = 0x3
   334  	IFA_BROADCAST       = 0x4
   335  	IFA_ANYCAST         = 0x5
   336  	IFA_CACHEINFO       = 0x6
   337  	IFA_MULTICAST       = 0x7
   338  	IFLA_UNSPEC         = 0x0
   339  	IFLA_ADDRESS        = 0x1
   340  	IFLA_BROADCAST      = 0x2
   341  	IFLA_IFNAME         = 0x3
   342  	IFLA_MTU            = 0x4
   343  	IFLA_LINK           = 0x5
   344  	IFLA_QDISC          = 0x6
   345  	IFLA_STATS          = 0x7
   346  	IFLA_COST           = 0x8
   347  	IFLA_PRIORITY       = 0x9
   348  	IFLA_MASTER         = 0xa
   349  	IFLA_WIRELESS       = 0xb
   350  	IFLA_PROTINFO       = 0xc
   351  	IFLA_TXQLEN         = 0xd
   352  	IFLA_MAP            = 0xe
   353  	IFLA_WEIGHT         = 0xf
   354  	IFLA_OPERSTATE      = 0x10
   355  	IFLA_LINKMODE       = 0x11
   356  	IFLA_LINKINFO       = 0x12
   357  	IFLA_NET_NS_PID     = 0x13
   358  	IFLA_IFALIAS        = 0x14
   359  	IFLA_MAX            = 0x1d
   360  	RT_SCOPE_UNIVERSE   = 0x0
   361  	RT_SCOPE_SITE       = 0xc8
   362  	RT_SCOPE_LINK       = 0xfd
   363  	RT_SCOPE_HOST       = 0xfe
   364  	RT_SCOPE_NOWHERE    = 0xff
   365  	RT_TABLE_UNSPEC     = 0x0
   366  	RT_TABLE_COMPAT     = 0xfc
   367  	RT_TABLE_DEFAULT    = 0xfd
   368  	RT_TABLE_MAIN       = 0xfe
   369  	RT_TABLE_LOCAL      = 0xff
   370  	RT_TABLE_MAX        = 0xffffffff
   371  	RTA_UNSPEC          = 0x0
   372  	RTA_DST             = 0x1
   373  	RTA_SRC             = 0x2
   374  	RTA_IIF             = 0x3
   375  	RTA_OIF             = 0x4
   376  	RTA_GATEWAY         = 0x5
   377  	RTA_PRIORITY        = 0x6
   378  	RTA_PREFSRC         = 0x7
   379  	RTA_METRICS         = 0x8
   380  	RTA_MULTIPATH       = 0x9
   381  	RTA_FLOW            = 0xb
   382  	RTA_CACHEINFO       = 0xc
   383  	RTA_TABLE           = 0xf
   384  	RTN_UNSPEC          = 0x0
   385  	RTN_UNICAST         = 0x1
   386  	RTN_LOCAL           = 0x2
   387  	RTN_BROADCAST       = 0x3
   388  	RTN_ANYCAST         = 0x4
   389  	RTN_MULTICAST       = 0x5
   390  	RTN_BLACKHOLE       = 0x6
   391  	RTN_UNREACHABLE     = 0x7
   392  	RTN_PROHIBIT        = 0x8
   393  	RTN_THROW           = 0x9
   394  	RTN_NAT             = 0xa
   395  	RTN_XRESOLVE        = 0xb
   396  	RTNLGRP_NONE        = 0x0
   397  	RTNLGRP_LINK        = 0x1
   398  	RTNLGRP_NOTIFY      = 0x2
   399  	RTNLGRP_NEIGH       = 0x3
   400  	RTNLGRP_TC          = 0x4
   401  	RTNLGRP_IPV4_IFADDR = 0x5
   402  	RTNLGRP_IPV4_MROUTE = 0x6
   403  	RTNLGRP_IPV4_ROUTE  = 0x7
   404  	RTNLGRP_IPV4_RULE   = 0x8
   405  	RTNLGRP_IPV6_IFADDR = 0x9
   406  	RTNLGRP_IPV6_MROUTE = 0xa
   407  	RTNLGRP_IPV6_ROUTE  = 0xb
   408  	RTNLGRP_IPV6_IFINFO = 0xc
   409  	RTNLGRP_IPV6_PREFIX = 0x12
   410  	RTNLGRP_IPV6_RULE   = 0x13
   411  	RTNLGRP_ND_USEROPT  = 0x14
   412  	SizeofNlMsghdr      = 0x10
   413  	SizeofNlMsgerr      = 0x14
   414  	SizeofRtGenmsg      = 0x1
   415  	SizeofNlAttr        = 0x4
   416  	SizeofRtAttr        = 0x4
   417  	SizeofIfInfomsg     = 0x10
   418  	SizeofIfAddrmsg     = 0x8
   419  	SizeofRtMsg         = 0xc
   420  	SizeofRtNexthop     = 0x8
   421  )
   422  
   423  type NlMsghdr struct {
   424  	Len   uint32
   425  	Type  uint16
   426  	Flags uint16
   427  	Seq   uint32
   428  	Pid   uint32
   429  }
   430  
   431  type NlMsgerr struct {
   432  	Error int32
   433  	Msg   NlMsghdr
   434  }
   435  
   436  type RtGenmsg struct {
   437  	Family uint8
   438  }
   439  
   440  type NlAttr struct {
   441  	Len  uint16
   442  	Type uint16
   443  }
   444  
   445  type RtAttr struct {
   446  	Len  uint16
   447  	Type uint16
   448  }
   449  
   450  type IfInfomsg struct {
   451  	Family     uint8
   452  	X__ifi_pad uint8
   453  	Type       uint16
   454  	Index      int32
   455  	Flags      uint32
   456  	Change     uint32
   457  }
   458  
   459  type IfAddrmsg struct {
   460  	Family    uint8
   461  	Prefixlen uint8
   462  	Flags     uint8
   463  	Scope     uint8
   464  	Index     uint32
   465  }
   466  
   467  type RtMsg struct {
   468  	Family   uint8
   469  	Dst_len  uint8
   470  	Src_len  uint8
   471  	Tos      uint8
   472  	Table    uint8
   473  	Protocol uint8
   474  	Scope    uint8
   475  	Type     uint8
   476  	Flags    uint32
   477  }
   478  
   479  type RtNexthop struct {
   480  	Len     uint16
   481  	Flags   uint8
   482  	Hops    uint8
   483  	Ifindex int32
   484  }
   485  
   486  const (
   487  	SizeofSockFilter = 0x8
   488  	SizeofSockFprog  = 0x8
   489  )
   490  
   491  type SockFilter struct {
   492  	Code uint16
   493  	Jt   uint8
   494  	Jf   uint8
   495  	K    uint32
   496  }
   497  
   498  type SockFprog struct {
   499  	Len       uint16
   500  	Pad_cgo_0 [2]byte
   501  	Filter    *SockFilter
   502  }
   503  
   504  type InotifyEvent struct {
   505  	Wd     int32
   506  	Mask   uint32
   507  	Cookie uint32
   508  	Len    uint32
   509  	Name   [0]uint8
   510  }
   511  
   512  const SizeofInotifyEvent = 0x10
   513  
   514  type PtraceRegs struct {
   515  	Uregs [18]uint32
   516  }
   517  
   518  type FdSet struct {
   519  	Bits [32]int32
   520  }
   521  
   522  type Sysinfo_t struct {
   523  	Uptime    int32
   524  	Loads     [3]uint32
   525  	Totalram  uint32
   526  	Freeram   uint32
   527  	Sharedram uint32
   528  	Bufferram uint32
   529  	Totalswap uint32
   530  	Freeswap  uint32
   531  	Procs     uint16
   532  	Pad       uint16
   533  	Totalhigh uint32
   534  	Freehigh  uint32
   535  	Unit      uint32
   536  	X_f       [8]uint8
   537  }
   538  
   539  type Utsname struct {
   540  	Sysname    [65]uint8
   541  	Nodename   [65]uint8
   542  	Release    [65]uint8
   543  	Version    [65]uint8
   544  	Machine    [65]uint8
   545  	Domainname [65]uint8
   546  }
   547  
   548  type Ustat_t struct {
   549  	Tfree  int32
   550  	Tinode uint32
   551  	Fname  [6]uint8
   552  	Fpack  [6]uint8
   553  }
   554  
   555  type EpollEvent struct {
   556  	Events uint32
   557  	PadFd  int32
   558  	Fd     int32
   559  	Pad    int32
   560  }
   561  
   562  const (
   563  	_AT_FDCWD            = -0x64
   564  	_AT_REMOVEDIR        = 0x200
   565  	_AT_SYMLINK_NOFOLLOW = 0x100
   566  	_AT_EACCESS          = 0x200
   567  	_AT_EMPTY_PATH       = 0x1000
   568  )
   569  
   570  type pollFd struct {
   571  	Fd      int32
   572  	Events  int16
   573  	Revents int16
   574  }
   575  
   576  type Termios struct {
   577  	Iflag     uint32
   578  	Oflag     uint32
   579  	Cflag     uint32
   580  	Lflag     uint32
   581  	Line      uint8
   582  	Cc        [32]uint8
   583  	Pad_cgo_0 [3]byte
   584  	Ispeed    uint32
   585  	Ospeed    uint32
   586  }
   587  
   588  const (
   589  	VINTR    = 0x0
   590  	VQUIT    = 0x1
   591  	VERASE   = 0x2
   592  	VKILL    = 0x3
   593  	VEOF     = 0x4
   594  	VTIME    = 0x5
   595  	VMIN     = 0x6
   596  	VSWTC    = 0x7
   597  	VSTART   = 0x8
   598  	VSTOP    = 0x9
   599  	VSUSP    = 0xa
   600  	VEOL     = 0xb
   601  	VREPRINT = 0xc
   602  	VDISCARD = 0xd
   603  	VWERASE  = 0xe
   604  	VLNEXT   = 0xf
   605  	VEOL2    = 0x10
   606  	IGNBRK   = 0x1
   607  	BRKINT   = 0x2
   608  	IGNPAR   = 0x4
   609  	PARMRK   = 0x8
   610  	INPCK    = 0x10
   611  	ISTRIP   = 0x20
   612  	INLCR    = 0x40
   613  	IGNCR    = 0x80
   614  	ICRNL    = 0x100
   615  	IUCLC    = 0x200
   616  	IXON     = 0x400
   617  	IXANY    = 0x800
   618  	IXOFF    = 0x1000
   619  	IMAXBEL  = 0x2000
   620  	IUTF8    = 0x4000
   621  	OPOST    = 0x1
   622  	OLCUC    = 0x2
   623  	ONLCR    = 0x4
   624  	OCRNL    = 0x8
   625  	ONOCR    = 0x10
   626  	ONLRET   = 0x20
   627  	OFILL    = 0x40
   628  	OFDEL    = 0x80
   629  	B0       = 0x0
   630  	B50      = 0x1
   631  	B75      = 0x2
   632  	B110     = 0x3
   633  	B134     = 0x4
   634  	B150     = 0x5
   635  	B200     = 0x6
   636  	B300     = 0x7
   637  	B600     = 0x8
   638  	B1200    = 0x9
   639  	B1800    = 0xa
   640  	B2400    = 0xb
   641  	B4800    = 0xc
   642  	B9600    = 0xd
   643  	B19200   = 0xe
   644  	B38400   = 0xf
   645  	CSIZE    = 0x30
   646  	CS5      = 0x0
   647  	CS6      = 0x10
   648  	CS7      = 0x20
   649  	CS8      = 0x30
   650  	CSTOPB   = 0x40
   651  	CREAD    = 0x80
   652  	PARENB   = 0x100
   653  	PARODD   = 0x200
   654  	HUPCL    = 0x400
   655  	CLOCAL   = 0x800
   656  	B57600   = 0x1001
   657  	B115200  = 0x1002
   658  	B230400  = 0x1003
   659  	B460800  = 0x1004
   660  	B500000  = 0x1005
   661  	B576000  = 0x1006
   662  	B921600  = 0x1007
   663  	B1000000 = 0x1008
   664  	B1152000 = 0x1009
   665  	B1500000 = 0x100a
   666  	B2000000 = 0x100b
   667  	B2500000 = 0x100c
   668  	B3000000 = 0x100d
   669  	B3500000 = 0x100e
   670  	B4000000 = 0x100f
   671  	ISIG     = 0x1
   672  	ICANON   = 0x2
   673  	XCASE    = 0x4
   674  	ECHO     = 0x8
   675  	ECHOE    = 0x10
   676  	ECHOK    = 0x20
   677  	ECHONL   = 0x40
   678  	NOFLSH   = 0x80
   679  	TOSTOP   = 0x100
   680  	ECHOCTL  = 0x200
   681  	ECHOPRT  = 0x400
   682  	ECHOKE   = 0x800
   683  	FLUSHO   = 0x1000
   684  	PENDIN   = 0x4000
   685  	IEXTEN   = 0x8000
   686  	TCGETS   = 0x5401
   687  	TCSETS   = 0x5402
   688  )
   689  

View as plain text