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