ztypes_linux_386.mx raw

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