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