Source file src/syscall/ztypes_linux_arm.go

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

View as plain text