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