1// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 linux/types.go | go run mkpost.go 2// Code generated by the command above; see README.md. DO NOT EDIT. 3 4// +build 386,linux 5 6package unix 7 8const ( 9 sizeofPtr = 0x4 10 sizeofShort = 0x2 11 sizeofInt = 0x4 12 sizeofLong = 0x4 13 sizeofLongLong = 0x8 14 PathMax = 0x1000 15) 16 17type ( 18 _C_short int16 19 _C_int int32 20 _C_long int32 21 _C_long_long int64 22) 23 24type Timespec struct { 25 Sec int32 26 Nsec int32 27} 28 29type Timeval struct { 30 Sec int32 31 Usec int32 32} 33 34type 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 _ [44]byte 56} 57 58type Time_t int32 59 60type Tms struct { 61 Utime int32 62 Stime int32 63 Cutime int32 64 Cstime int32 65} 66 67type Utimbuf struct { 68 Actime int32 69 Modtime int32 70} 71 72type 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 91type Rlimit struct { 92 Cur uint64 93 Max uint64 94} 95 96type _Gid_t uint32 97 98type Stat_t struct { 99 Dev uint64 100 X__pad1 uint16 101 _ [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 _ [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 119type 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 134type StatxTimestamp struct { 135 Sec int64 136 Nsec uint32 137 X__reserved int32 138} 139 140type Statx_t struct { 141 Mask uint32 142 Blksize uint32 143 Attributes uint64 144 Nlink uint32 145 Uid uint32 146 Gid uint32 147 Mode uint16 148 _ [1]uint16 149 Ino uint64 150 Size uint64 151 Blocks uint64 152 Attributes_mask uint64 153 Atime StatxTimestamp 154 Btime StatxTimestamp 155 Ctime StatxTimestamp 156 Mtime StatxTimestamp 157 Rdev_major uint32 158 Rdev_minor uint32 159 Dev_major uint32 160 Dev_minor uint32 161 _ [14]uint64 162} 163 164type Dirent struct { 165 Ino uint64 166 Off int64 167 Reclen uint16 168 Type uint8 169 Name [256]int8 170 _ [1]byte 171} 172 173type Fsid struct { 174 X__val [2]int32 175} 176 177type Flock_t struct { 178 Type int16 179 Whence int16 180 Start int64 181 Len int64 182 Pid int32 183} 184 185type FscryptPolicy struct { 186 Version uint8 187 Contents_encryption_mode uint8 188 Filenames_encryption_mode uint8 189 Flags uint8 190 Master_key_descriptor [8]uint8 191} 192 193type FscryptKey struct { 194 Mode uint32 195 Raw [64]uint8 196 Size uint32 197} 198 199type KeyctlDHParams struct { 200 Private int32 201 Prime int32 202 Base int32 203} 204 205const ( 206 FADV_NORMAL = 0x0 207 FADV_RANDOM = 0x1 208 FADV_SEQUENTIAL = 0x2 209 FADV_WILLNEED = 0x3 210 FADV_DONTNEED = 0x4 211 FADV_NOREUSE = 0x5 212) 213 214type RawSockaddrInet4 struct { 215 Family uint16 216 Port uint16 217 Addr [4]byte /* in_addr */ 218 Zero [8]uint8 219} 220 221type RawSockaddrInet6 struct { 222 Family uint16 223 Port uint16 224 Flowinfo uint32 225 Addr [16]byte /* in6_addr */ 226 Scope_id uint32 227} 228 229type RawSockaddrUnix struct { 230 Family uint16 231 Path [108]int8 232} 233 234type RawSockaddrLinklayer struct { 235 Family uint16 236 Protocol uint16 237 Ifindex int32 238 Hatype uint16 239 Pkttype uint8 240 Halen uint8 241 Addr [8]uint8 242} 243 244type RawSockaddrNetlink struct { 245 Family uint16 246 Pad uint16 247 Pid uint32 248 Groups uint32 249} 250 251type RawSockaddrHCI struct { 252 Family uint16 253 Dev uint16 254 Channel uint16 255} 256 257type RawSockaddrL2 struct { 258 Family uint16 259 Psm uint16 260 Bdaddr [6]uint8 261 Cid uint16 262 Bdaddr_type uint8 263 _ [1]byte 264} 265 266type RawSockaddrCAN struct { 267 Family uint16 268 _ [2]byte 269 Ifindex int32 270 Addr [8]byte 271} 272 273type RawSockaddrALG struct { 274 Family uint16 275 Type [14]uint8 276 Feat uint32 277 Mask uint32 278 Name [64]uint8 279} 280 281type RawSockaddrVM struct { 282 Family uint16 283 Reserved1 uint16 284 Port uint32 285 Cid uint32 286 Zero [4]uint8 287} 288 289type RawSockaddr struct { 290 Family uint16 291 Data [14]int8 292} 293 294type RawSockaddrAny struct { 295 Addr RawSockaddr 296 Pad [96]int8 297} 298 299type _Socklen uint32 300 301type Linger struct { 302 Onoff int32 303 Linger int32 304} 305 306type Iovec struct { 307 Base *byte 308 Len uint32 309} 310 311type IPMreq struct { 312 Multiaddr [4]byte /* in_addr */ 313 Interface [4]byte /* in_addr */ 314} 315 316type IPMreqn struct { 317 Multiaddr [4]byte /* in_addr */ 318 Address [4]byte /* in_addr */ 319 Ifindex int32 320} 321 322type IPv6Mreq struct { 323 Multiaddr [16]byte /* in6_addr */ 324 Interface uint32 325} 326 327type PacketMreq struct { 328 Ifindex int32 329 Type uint16 330 Alen uint16 331 Address [8]uint8 332} 333 334type Msghdr struct { 335 Name *byte 336 Namelen uint32 337 Iov *Iovec 338 Iovlen uint32 339 Control *byte 340 Controllen uint32 341 Flags int32 342} 343 344type Cmsghdr struct { 345 Len uint32 346 Level int32 347 Type int32 348} 349 350type Inet4Pktinfo struct { 351 Ifindex int32 352 Spec_dst [4]byte /* in_addr */ 353 Addr [4]byte /* in_addr */ 354} 355 356type Inet6Pktinfo struct { 357 Addr [16]byte /* in6_addr */ 358 Ifindex uint32 359} 360 361type IPv6MTUInfo struct { 362 Addr RawSockaddrInet6 363 Mtu uint32 364} 365 366type ICMPv6Filter struct { 367 Data [8]uint32 368} 369 370type Ucred struct { 371 Pid int32 372 Uid uint32 373 Gid uint32 374} 375 376type TCPInfo struct { 377 State uint8 378 Ca_state uint8 379 Retransmits uint8 380 Probes uint8 381 Backoff uint8 382 Options uint8 383 _ [2]byte 384 Rto uint32 385 Ato uint32 386 Snd_mss uint32 387 Rcv_mss uint32 388 Unacked uint32 389 Sacked uint32 390 Lost uint32 391 Retrans uint32 392 Fackets uint32 393 Last_data_sent uint32 394 Last_ack_sent uint32 395 Last_data_recv uint32 396 Last_ack_recv uint32 397 Pmtu uint32 398 Rcv_ssthresh uint32 399 Rtt uint32 400 Rttvar uint32 401 Snd_ssthresh uint32 402 Snd_cwnd uint32 403 Advmss uint32 404 Reordering uint32 405 Rcv_rtt uint32 406 Rcv_space uint32 407 Total_retrans uint32 408} 409 410const ( 411 SizeofSockaddrInet4 = 0x10 412 SizeofSockaddrInet6 = 0x1c 413 SizeofSockaddrAny = 0x70 414 SizeofSockaddrUnix = 0x6e 415 SizeofSockaddrLinklayer = 0x14 416 SizeofSockaddrNetlink = 0xc 417 SizeofSockaddrHCI = 0x6 418 SizeofSockaddrL2 = 0xe 419 SizeofSockaddrCAN = 0x10 420 SizeofSockaddrALG = 0x58 421 SizeofSockaddrVM = 0x10 422 SizeofLinger = 0x8 423 SizeofIovec = 0x8 424 SizeofIPMreq = 0x8 425 SizeofIPMreqn = 0xc 426 SizeofIPv6Mreq = 0x14 427 SizeofPacketMreq = 0x10 428 SizeofMsghdr = 0x1c 429 SizeofCmsghdr = 0xc 430 SizeofInet4Pktinfo = 0xc 431 SizeofInet6Pktinfo = 0x14 432 SizeofIPv6MTUInfo = 0x20 433 SizeofICMPv6Filter = 0x20 434 SizeofUcred = 0xc 435 SizeofTCPInfo = 0x68 436) 437 438const ( 439 IFA_UNSPEC = 0x0 440 IFA_ADDRESS = 0x1 441 IFA_LOCAL = 0x2 442 IFA_LABEL = 0x3 443 IFA_BROADCAST = 0x4 444 IFA_ANYCAST = 0x5 445 IFA_CACHEINFO = 0x6 446 IFA_MULTICAST = 0x7 447 IFLA_UNSPEC = 0x0 448 IFLA_ADDRESS = 0x1 449 IFLA_BROADCAST = 0x2 450 IFLA_IFNAME = 0x3 451 IFLA_MTU = 0x4 452 IFLA_LINK = 0x5 453 IFLA_QDISC = 0x6 454 IFLA_STATS = 0x7 455 IFLA_COST = 0x8 456 IFLA_PRIORITY = 0x9 457 IFLA_MASTER = 0xa 458 IFLA_WIRELESS = 0xb 459 IFLA_PROTINFO = 0xc 460 IFLA_TXQLEN = 0xd 461 IFLA_MAP = 0xe 462 IFLA_WEIGHT = 0xf 463 IFLA_OPERSTATE = 0x10 464 IFLA_LINKMODE = 0x11 465 IFLA_LINKINFO = 0x12 466 IFLA_NET_NS_PID = 0x13 467 IFLA_IFALIAS = 0x14 468 IFLA_MAX = 0x2c 469 RT_SCOPE_UNIVERSE = 0x0 470 RT_SCOPE_SITE = 0xc8 471 RT_SCOPE_LINK = 0xfd 472 RT_SCOPE_HOST = 0xfe 473 RT_SCOPE_NOWHERE = 0xff 474 RT_TABLE_UNSPEC = 0x0 475 RT_TABLE_COMPAT = 0xfc 476 RT_TABLE_DEFAULT = 0xfd 477 RT_TABLE_MAIN = 0xfe 478 RT_TABLE_LOCAL = 0xff 479 RT_TABLE_MAX = 0xffffffff 480 RTA_UNSPEC = 0x0 481 RTA_DST = 0x1 482 RTA_SRC = 0x2 483 RTA_IIF = 0x3 484 RTA_OIF = 0x4 485 RTA_GATEWAY = 0x5 486 RTA_PRIORITY = 0x6 487 RTA_PREFSRC = 0x7 488 RTA_METRICS = 0x8 489 RTA_MULTIPATH = 0x9 490 RTA_FLOW = 0xb 491 RTA_CACHEINFO = 0xc 492 RTA_TABLE = 0xf 493 RTN_UNSPEC = 0x0 494 RTN_UNICAST = 0x1 495 RTN_LOCAL = 0x2 496 RTN_BROADCAST = 0x3 497 RTN_ANYCAST = 0x4 498 RTN_MULTICAST = 0x5 499 RTN_BLACKHOLE = 0x6 500 RTN_UNREACHABLE = 0x7 501 RTN_PROHIBIT = 0x8 502 RTN_THROW = 0x9 503 RTN_NAT = 0xa 504 RTN_XRESOLVE = 0xb 505 RTNLGRP_NONE = 0x0 506 RTNLGRP_LINK = 0x1 507 RTNLGRP_NOTIFY = 0x2 508 RTNLGRP_NEIGH = 0x3 509 RTNLGRP_TC = 0x4 510 RTNLGRP_IPV4_IFADDR = 0x5 511 RTNLGRP_IPV4_MROUTE = 0x6 512 RTNLGRP_IPV4_ROUTE = 0x7 513 RTNLGRP_IPV4_RULE = 0x8 514 RTNLGRP_IPV6_IFADDR = 0x9 515 RTNLGRP_IPV6_MROUTE = 0xa 516 RTNLGRP_IPV6_ROUTE = 0xb 517 RTNLGRP_IPV6_IFINFO = 0xc 518 RTNLGRP_IPV6_PREFIX = 0x12 519 RTNLGRP_IPV6_RULE = 0x13 520 RTNLGRP_ND_USEROPT = 0x14 521 SizeofNlMsghdr = 0x10 522 SizeofNlMsgerr = 0x14 523 SizeofRtGenmsg = 0x1 524 SizeofNlAttr = 0x4 525 SizeofRtAttr = 0x4 526 SizeofIfInfomsg = 0x10 527 SizeofIfAddrmsg = 0x8 528 SizeofRtMsg = 0xc 529 SizeofRtNexthop = 0x8 530) 531 532type NlMsghdr struct { 533 Len uint32 534 Type uint16 535 Flags uint16 536 Seq uint32 537 Pid uint32 538} 539 540type NlMsgerr struct { 541 Error int32 542 Msg NlMsghdr 543} 544 545type RtGenmsg struct { 546 Family uint8 547} 548 549type NlAttr struct { 550 Len uint16 551 Type uint16 552} 553 554type RtAttr struct { 555 Len uint16 556 Type uint16 557} 558 559type IfInfomsg struct { 560 Family uint8 561 X__ifi_pad uint8 562 Type uint16 563 Index int32 564 Flags uint32 565 Change uint32 566} 567 568type IfAddrmsg struct { 569 Family uint8 570 Prefixlen uint8 571 Flags uint8 572 Scope uint8 573 Index uint32 574} 575 576type RtMsg struct { 577 Family uint8 578 Dst_len uint8 579 Src_len uint8 580 Tos uint8 581 Table uint8 582 Protocol uint8 583 Scope uint8 584 Type uint8 585 Flags uint32 586} 587 588type RtNexthop struct { 589 Len uint16 590 Flags uint8 591 Hops uint8 592 Ifindex int32 593} 594 595const ( 596 SizeofSockFilter = 0x8 597 SizeofSockFprog = 0x8 598) 599 600type SockFilter struct { 601 Code uint16 602 Jt uint8 603 Jf uint8 604 K uint32 605} 606 607type SockFprog struct { 608 Len uint16 609 _ [2]byte 610 Filter *SockFilter 611} 612 613type InotifyEvent struct { 614 Wd int32 615 Mask uint32 616 Cookie uint32 617 Len uint32 618} 619 620const SizeofInotifyEvent = 0x10 621 622type PtraceRegs struct { 623 Ebx int32 624 Ecx int32 625 Edx int32 626 Esi int32 627 Edi int32 628 Ebp int32 629 Eax int32 630 Xds int32 631 Xes int32 632 Xfs int32 633 Xgs int32 634 Orig_eax int32 635 Eip int32 636 Xcs int32 637 Eflags int32 638 Esp int32 639 Xss int32 640} 641 642type FdSet struct { 643 Bits [32]int32 644} 645 646type Sysinfo_t struct { 647 Uptime int32 648 Loads [3]uint32 649 Totalram uint32 650 Freeram uint32 651 Sharedram uint32 652 Bufferram uint32 653 Totalswap uint32 654 Freeswap uint32 655 Procs uint16 656 Pad uint16 657 Totalhigh uint32 658 Freehigh uint32 659 Unit uint32 660 X_f [8]int8 661} 662 663type Utsname struct { 664 Sysname [65]byte 665 Nodename [65]byte 666 Release [65]byte 667 Version [65]byte 668 Machine [65]byte 669 Domainname [65]byte 670} 671 672type Ustat_t struct { 673 Tfree int32 674 Tinode uint32 675 Fname [6]int8 676 Fpack [6]int8 677} 678 679type EpollEvent struct { 680 Events uint32 681 Fd int32 682 Pad int32 683} 684 685const ( 686 AT_EMPTY_PATH = 0x1000 687 AT_FDCWD = -0x64 688 AT_NO_AUTOMOUNT = 0x800 689 AT_REMOVEDIR = 0x200 690 691 AT_STATX_SYNC_AS_STAT = 0x0 692 AT_STATX_FORCE_SYNC = 0x2000 693 AT_STATX_DONT_SYNC = 0x4000 694 695 AT_SYMLINK_FOLLOW = 0x400 696 AT_SYMLINK_NOFOLLOW = 0x100 697) 698 699type PollFd struct { 700 Fd int32 701 Events int16 702 Revents int16 703} 704 705const ( 706 POLLIN = 0x1 707 POLLPRI = 0x2 708 POLLOUT = 0x4 709 POLLRDHUP = 0x2000 710 POLLERR = 0x8 711 POLLHUP = 0x10 712 POLLNVAL = 0x20 713) 714 715type Sigset_t struct { 716 X__val [32]uint32 717} 718 719const RNDGETENTCNT = 0x80045200 720 721const PERF_IOC_FLAG_GROUP = 0x1 722 723type Termios struct { 724 Iflag uint32 725 Oflag uint32 726 Cflag uint32 727 Lflag uint32 728 Line uint8 729 Cc [19]uint8 730 Ispeed uint32 731 Ospeed uint32 732} 733 734type Winsize struct { 735 Row uint16 736 Col uint16 737 Xpixel uint16 738 Ypixel uint16 739} 740 741type Taskstats struct { 742 Version uint16 743 _ [2]byte 744 Ac_exitcode uint32 745 Ac_flag uint8 746 Ac_nice uint8 747 _ [6]byte 748 Cpu_count uint64 749 Cpu_delay_total uint64 750 Blkio_count uint64 751 Blkio_delay_total uint64 752 Swapin_count uint64 753 Swapin_delay_total uint64 754 Cpu_run_real_total uint64 755 Cpu_run_virtual_total uint64 756 Ac_comm [32]int8 757 Ac_sched uint8 758 Ac_pad [3]uint8 759 _ [4]byte 760 Ac_uid uint32 761 Ac_gid uint32 762 Ac_pid uint32 763 Ac_ppid uint32 764 Ac_btime uint32 765 _ [4]byte 766 Ac_etime uint64 767 Ac_utime uint64 768 Ac_stime uint64 769 Ac_minflt uint64 770 Ac_majflt uint64 771 Coremem uint64 772 Virtmem uint64 773 Hiwater_rss uint64 774 Hiwater_vm uint64 775 Read_char uint64 776 Write_char uint64 777 Read_syscalls uint64 778 Write_syscalls uint64 779 Read_bytes uint64 780 Write_bytes uint64 781 Cancelled_write_bytes uint64 782 Nvcsw uint64 783 Nivcsw uint64 784 Ac_utimescaled uint64 785 Ac_stimescaled uint64 786 Cpu_scaled_run_real_total uint64 787 Freepages_count uint64 788 Freepages_delay_total uint64 789} 790 791const ( 792 TASKSTATS_CMD_UNSPEC = 0x0 793 TASKSTATS_CMD_GET = 0x1 794 TASKSTATS_CMD_NEW = 0x2 795 TASKSTATS_TYPE_UNSPEC = 0x0 796 TASKSTATS_TYPE_PID = 0x1 797 TASKSTATS_TYPE_TGID = 0x2 798 TASKSTATS_TYPE_STATS = 0x3 799 TASKSTATS_TYPE_AGGR_PID = 0x4 800 TASKSTATS_TYPE_AGGR_TGID = 0x5 801 TASKSTATS_TYPE_NULL = 0x6 802 TASKSTATS_CMD_ATTR_UNSPEC = 0x0 803 TASKSTATS_CMD_ATTR_PID = 0x1 804 TASKSTATS_CMD_ATTR_TGID = 0x2 805 TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 806 TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 807) 808 809type CGroupStats struct { 810 Sleeping uint64 811 Running uint64 812 Stopped uint64 813 Uninterruptible uint64 814 Io_wait uint64 815} 816 817const ( 818 CGROUPSTATS_CMD_UNSPEC = 0x3 819 CGROUPSTATS_CMD_GET = 0x4 820 CGROUPSTATS_CMD_NEW = 0x5 821 CGROUPSTATS_TYPE_UNSPEC = 0x0 822 CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 823 CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 824 CGROUPSTATS_CMD_ATTR_FD = 0x1 825) 826 827type Genlmsghdr struct { 828 Cmd uint8 829 Version uint8 830 Reserved uint16 831} 832 833const ( 834 CTRL_CMD_UNSPEC = 0x0 835 CTRL_CMD_NEWFAMILY = 0x1 836 CTRL_CMD_DELFAMILY = 0x2 837 CTRL_CMD_GETFAMILY = 0x3 838 CTRL_CMD_NEWOPS = 0x4 839 CTRL_CMD_DELOPS = 0x5 840 CTRL_CMD_GETOPS = 0x6 841 CTRL_CMD_NEWMCAST_GRP = 0x7 842 CTRL_CMD_DELMCAST_GRP = 0x8 843 CTRL_CMD_GETMCAST_GRP = 0x9 844 CTRL_ATTR_UNSPEC = 0x0 845 CTRL_ATTR_FAMILY_ID = 0x1 846 CTRL_ATTR_FAMILY_NAME = 0x2 847 CTRL_ATTR_VERSION = 0x3 848 CTRL_ATTR_HDRSIZE = 0x4 849 CTRL_ATTR_MAXATTR = 0x5 850 CTRL_ATTR_OPS = 0x6 851 CTRL_ATTR_MCAST_GROUPS = 0x7 852 CTRL_ATTR_OP_UNSPEC = 0x0 853 CTRL_ATTR_OP_ID = 0x1 854 CTRL_ATTR_OP_FLAGS = 0x2 855 CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 856 CTRL_ATTR_MCAST_GRP_NAME = 0x1 857 CTRL_ATTR_MCAST_GRP_ID = 0x2 858) 859 860type cpuMask uint32 861 862const ( 863 _CPU_SETSIZE = 0x400 864 _NCPUBITS = 0x20 865) 866 867const ( 868 BDADDR_BREDR = 0x0 869 BDADDR_LE_PUBLIC = 0x1 870 BDADDR_LE_RANDOM = 0x2 871) 872