github.com/varialus/godfly@v0.0.0-20130904042352-1934f9f095ab/src/pkg/syscall/ztypes_linux_arm.go (about)

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