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