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