github.com/peggyl/go@v0.0.0-20151008231540-ae315999c2d5/src/syscall/ztypes_linux_amd64.go (about)

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