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