Source file src/syscall/ztypes_linux_amd64.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      = 0x8
     8  	sizeofShort    = 0x2
     9  	sizeofInt      = 0x4
    10  	sizeofLong     = 0x8
    11  	sizeofLongLong = 0x8
    12  	PathMax        = 0x1000
    13  )
    14  
    15  type (
    16  	_C_short     int16
    17  	_C_int       int32
    18  	_C_long      int64
    19  	_C_long_long int64
    20  )
    21  
    22  type Timespec struct {
    23  	Sec  int64
    24  	Nsec int64
    25  }
    26  
    27  type Timeval struct {
    28  	Sec  int64
    29  	Usec int64
    30  }
    31  
    32  type Timex struct {
    33  	Modes     uint32
    34  	Pad_cgo_0 [4]byte
    35  	Offset    int64
    36  	Freq      int64
    37  	Maxerror  int64
    38  	Esterror  int64
    39  	Status    int32
    40  	Pad_cgo_1 [4]byte
    41  	Constant  int64
    42  	Precision int64
    43  	Tolerance int64
    44  	Time      Timeval
    45  	Tick      int64
    46  	Ppsfreq   int64
    47  	Jitter    int64
    48  	Shift     int32
    49  	Pad_cgo_2 [4]byte
    50  	Stabil    int64
    51  	Jitcnt    int64
    52  	Calcnt    int64
    53  	Errcnt    int64
    54  	Stbcnt    int64
    55  	Tai       int32
    56  	Pad_cgo_3 [44]byte
    57  }
    58  
    59  type Time_t int64
    60  
    61  type Tms struct {
    62  	Utime  int64
    63  	Stime  int64
    64  	Cutime int64
    65  	Cstime int64
    66  }
    67  
    68  type Utimbuf struct {
    69  	Actime  int64
    70  	Modtime int64
    71  }
    72  
    73  type Rusage struct {
    74  	Utime    Timeval
    75  	Stime    Timeval
    76  	Maxrss   int64
    77  	Ixrss    int64
    78  	Idrss    int64
    79  	Isrss    int64
    80  	Minflt   int64
    81  	Majflt   int64
    82  	Nswap    int64
    83  	Inblock  int64
    84  	Oublock  int64
    85  	Msgsnd   int64
    86  	Msgrcv   int64
    87  	Nsignals int64
    88  	Nvcsw    int64
    89  	Nivcsw   int64
    90  }
    91  
    92  type Rlimit struct {
    93  	Cur uint64
    94  	Max uint64
    95  }
    96  
    97  type _Gid_t uint32
    98  
    99  type Stat_t struct {
   100  	Dev       uint64
   101  	Ino       uint64
   102  	Nlink     uint64
   103  	Mode      uint32
   104  	Uid       uint32
   105  	Gid       uint32
   106  	X__pad0   int32
   107  	Rdev      uint64
   108  	Size      int64
   109  	Blksize   int64
   110  	Blocks    int64
   111  	Atim      Timespec
   112  	Mtim      Timespec
   113  	Ctim      Timespec
   114  	X__unused [3]int64
   115  }
   116  
   117  type Statfs_t struct {
   118  	Type    int64
   119  	Bsize   int64
   120  	Blocks  uint64
   121  	Bfree   uint64
   122  	Bavail  uint64
   123  	Files   uint64
   124  	Ffree   uint64
   125  	Fsid    Fsid
   126  	Namelen int64
   127  	Frsize  int64
   128  	Flags   int64
   129  	Spare   [4]int64
   130  }
   131  
   132  type Dirent struct {
   133  	Ino       uint64
   134  	Off       int64
   135  	Reclen    uint16
   136  	Type      uint8
   137  	Name      [256]int8
   138  	Pad_cgo_0 [5]byte
   139  }
   140  
   141  type Fsid struct {
   142  	X__val [2]int32
   143  }
   144  
   145  type Flock_t struct {
   146  	Type      int16
   147  	Whence    int16
   148  	Pad_cgo_0 [4]byte
   149  	Start     int64
   150  	Len       int64
   151  	Pid       int32
   152  	Pad_cgo_1 [4]byte
   153  }
   154  
   155  type RawSockaddrInet4 struct {
   156  	Family uint16
   157  	Port   uint16
   158  	Addr   [4]byte /* in_addr */
   159  	Zero   [8]uint8
   160  }
   161  
   162  type RawSockaddrInet6 struct {
   163  	Family   uint16
   164  	Port     uint16
   165  	Flowinfo uint32
   166  	Addr     [16]byte /* in6_addr */
   167  	Scope_id uint32
   168  }
   169  
   170  type RawSockaddrUnix struct {
   171  	Family uint16
   172  	Path   [108]int8
   173  }
   174  
   175  type RawSockaddrLinklayer struct {
   176  	Family   uint16
   177  	Protocol uint16
   178  	Ifindex  int32
   179  	Hatype   uint16
   180  	Pkttype  uint8
   181  	Halen    uint8
   182  	Addr     [8]uint8
   183  }
   184  
   185  type RawSockaddrNetlink struct {
   186  	Family uint16
   187  	Pad    uint16
   188  	Pid    uint32
   189  	Groups uint32
   190  }
   191  
   192  type RawSockaddr struct {
   193  	Family uint16
   194  	Data   [14]int8
   195  }
   196  
   197  type RawSockaddrAny struct {
   198  	Addr RawSockaddr
   199  	Pad  [96]int8
   200  }
   201  
   202  type _Socklen uint32
   203  
   204  type Linger struct {
   205  	Onoff  int32
   206  	Linger int32
   207  }
   208  
   209  type Iovec struct {
   210  	Base *byte
   211  	Len  uint64
   212  }
   213  
   214  type IPMreq struct {
   215  	Multiaddr [4]byte /* in_addr */
   216  	Interface [4]byte /* in_addr */
   217  }
   218  
   219  type IPMreqn struct {
   220  	Multiaddr [4]byte /* in_addr */
   221  	Address   [4]byte /* in_addr */
   222  	Ifindex   int32
   223  }
   224  
   225  type IPv6Mreq struct {
   226  	Multiaddr [16]byte /* in6_addr */
   227  	Interface uint32
   228  }
   229  
   230  type Msghdr struct {
   231  	Name       *byte
   232  	Namelen    uint32
   233  	Pad_cgo_0  [4]byte
   234  	Iov        *Iovec
   235  	Iovlen     uint64
   236  	Control    *byte
   237  	Controllen uint64
   238  	Flags      int32
   239  	Pad_cgo_1  [4]byte
   240  }
   241  
   242  type Cmsghdr struct {
   243  	Len   uint64
   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            = 0x38
   320  	SizeofCmsghdr           = 0x10
   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  = 0x10
   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 [6]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  	R15      uint64
   516  	R14      uint64
   517  	R13      uint64
   518  	R12      uint64
   519  	Rbp      uint64
   520  	Rbx      uint64
   521  	R11      uint64
   522  	R10      uint64
   523  	R9       uint64
   524  	R8       uint64
   525  	Rax      uint64
   526  	Rcx      uint64
   527  	Rdx      uint64
   528  	Rsi      uint64
   529  	Rdi      uint64
   530  	Orig_rax uint64
   531  	Rip      uint64
   532  	Cs       uint64
   533  	Eflags   uint64
   534  	Rsp      uint64
   535  	Ss       uint64
   536  	Fs_base  uint64
   537  	Gs_base  uint64
   538  	Ds       uint64
   539  	Es       uint64
   540  	Fs       uint64
   541  	Gs       uint64
   542  }
   543  
   544  type FdSet struct {
   545  	Bits [16]int64
   546  }
   547  
   548  type Sysinfo_t struct {
   549  	Uptime    int64
   550  	Loads     [3]uint64
   551  	Totalram  uint64
   552  	Freeram   uint64
   553  	Sharedram uint64
   554  	Bufferram uint64
   555  	Totalswap uint64
   556  	Freeswap  uint64
   557  	Procs     uint16
   558  	Pad       uint16
   559  	Pad_cgo_0 [4]byte
   560  	Totalhigh uint64
   561  	Freehigh  uint64
   562  	Unit      uint32
   563  	X_f       [0]byte
   564  	Pad_cgo_1 [4]byte
   565  }
   566  
   567  type Utsname struct {
   568  	Sysname    [65]int8
   569  	Nodename   [65]int8
   570  	Release    [65]int8
   571  	Version    [65]int8
   572  	Machine    [65]int8
   573  	Domainname [65]int8
   574  }
   575  
   576  type Ustat_t struct {
   577  	Tfree     int32
   578  	Pad_cgo_0 [4]byte
   579  	Tinode    uint64
   580  	Fname     [6]int8
   581  	Fpack     [6]int8
   582  	Pad_cgo_1 [4]byte
   583  }
   584  
   585  type EpollEvent struct {
   586  	Events uint32
   587  	Fd     int32
   588  	Pad    int32
   589  }
   590  
   591  const (
   592  	_AT_FDCWD            = -0x64
   593  	_AT_REMOVEDIR        = 0x200
   594  	_AT_SYMLINK_NOFOLLOW = 0x100
   595  	_AT_EACCESS          = 0x200
   596  	_AT_EMPTY_PATH       = 0x1000
   597  )
   598  
   599  type pollFd struct {
   600  	Fd      int32
   601  	Events  int16
   602  	Revents int16
   603  }
   604  
   605  type Termios struct {
   606  	Iflag     uint32
   607  	Oflag     uint32
   608  	Cflag     uint32
   609  	Lflag     uint32
   610  	Line      uint8
   611  	Cc        [32]uint8
   612  	Pad_cgo_0 [3]byte
   613  	Ispeed    uint32
   614  	Ospeed    uint32
   615  }
   616  
   617  const (
   618  	VINTR    = 0x0
   619  	VQUIT    = 0x1
   620  	VERASE   = 0x2
   621  	VKILL    = 0x3
   622  	VEOF     = 0x4
   623  	VTIME    = 0x5
   624  	VMIN     = 0x6
   625  	VSWTC    = 0x7
   626  	VSTART   = 0x8
   627  	VSTOP    = 0x9
   628  	VSUSP    = 0xa
   629  	VEOL     = 0xb
   630  	VREPRINT = 0xc
   631  	VDISCARD = 0xd
   632  	VWERASE  = 0xe
   633  	VLNEXT   = 0xf
   634  	VEOL2    = 0x10
   635  	IGNBRK   = 0x1
   636  	BRKINT   = 0x2
   637  	IGNPAR   = 0x4
   638  	PARMRK   = 0x8
   639  	INPCK    = 0x10
   640  	ISTRIP   = 0x20
   641  	INLCR    = 0x40
   642  	IGNCR    = 0x80
   643  	ICRNL    = 0x100
   644  	IUCLC    = 0x200
   645  	IXON     = 0x400
   646  	IXANY    = 0x800
   647  	IXOFF    = 0x1000
   648  	IMAXBEL  = 0x2000
   649  	IUTF8    = 0x4000
   650  	OPOST    = 0x1
   651  	OLCUC    = 0x2
   652  	ONLCR    = 0x4
   653  	OCRNL    = 0x8
   654  	ONOCR    = 0x10
   655  	ONLRET   = 0x20
   656  	OFILL    = 0x40
   657  	OFDEL    = 0x80
   658  	B0       = 0x0
   659  	B50      = 0x1
   660  	B75      = 0x2
   661  	B110     = 0x3
   662  	B134     = 0x4
   663  	B150     = 0x5
   664  	B200     = 0x6
   665  	B300     = 0x7
   666  	B600     = 0x8
   667  	B1200    = 0x9
   668  	B1800    = 0xa
   669  	B2400    = 0xb
   670  	B4800    = 0xc
   671  	B9600    = 0xd
   672  	B19200   = 0xe
   673  	B38400   = 0xf
   674  	CSIZE    = 0x30
   675  	CS5      = 0x0
   676  	CS6      = 0x10
   677  	CS7      = 0x20
   678  	CS8      = 0x30
   679  	CSTOPB   = 0x40
   680  	CREAD    = 0x80
   681  	PARENB   = 0x100
   682  	PARODD   = 0x200
   683  	HUPCL    = 0x400
   684  	CLOCAL   = 0x800
   685  	B57600   = 0x1001
   686  	B115200  = 0x1002
   687  	B230400  = 0x1003
   688  	B460800  = 0x1004
   689  	B500000  = 0x1005
   690  	B576000  = 0x1006
   691  	B921600  = 0x1007
   692  	B1000000 = 0x1008
   693  	B1152000 = 0x1009
   694  	B1500000 = 0x100a
   695  	B2000000 = 0x100b
   696  	B2500000 = 0x100c
   697  	B3000000 = 0x100d
   698  	B3500000 = 0x100e
   699  	B4000000 = 0x100f
   700  	ISIG     = 0x1
   701  	ICANON   = 0x2
   702  	XCASE    = 0x4
   703  	ECHO     = 0x8
   704  	ECHOE    = 0x10
   705  	ECHOK    = 0x20
   706  	ECHONL   = 0x40
   707  	NOFLSH   = 0x80
   708  	TOSTOP   = 0x100
   709  	ECHOCTL  = 0x200
   710  	ECHOPRT  = 0x400
   711  	ECHOKE   = 0x800
   712  	FLUSHO   = 0x1000
   713  	PENDIN   = 0x4000
   714  	IEXTEN   = 0x8000
   715  	TCGETS   = 0x5401
   716  	TCSETS   = 0x5402
   717  )
   718  

View as plain text