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