github.com/dolotech/hongbao@v0.0.0-20191130105438-fd59d7a5dda5/src/golang.org/x/sys/unix/ztypes_linux_mips64le.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 mips64le,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 uint32 103 Pad1 [3]uint32 104 Ino uint64 105 Mode uint32 106 Nlink uint32 107 Uid uint32 108 Gid uint32 109 Rdev uint32 110 Pad2 [3]uint32 111 Size int64 112 Atim Timespec 113 Mtim Timespec 114 Ctim Timespec 115 Blksize uint32 116 Pad4 uint32 117 Blocks int64 118 } 119 120 type Statfs_t struct { 121 Type int64 122 Bsize int64 123 Frsize int64 124 Blocks uint64 125 Bfree uint64 126 Files uint64 127 Ffree uint64 128 Bavail uint64 129 Fsid Fsid 130 Namelen int64 131 Flags int64 132 Spare [5]int64 133 } 134 135 type Dirent struct { 136 Ino uint64 137 Off int64 138 Reclen uint16 139 Type uint8 140 Name [256]int8 141 Pad_cgo_0 [5]byte 142 } 143 144 type Fsid struct { 145 X__val [2]int32 146 } 147 148 type Flock_t struct { 149 Type int16 150 Whence int16 151 Pad_cgo_0 [4]byte 152 Start int64 153 Len int64 154 Pid int32 155 Pad_cgo_1 [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 = 0x4 184 FADV_NOREUSE = 0x5 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 Pad_cgo_0 [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 Pad_cgo_0 [4]byte 302 Iov *Iovec 303 Iovlen uint64 304 Control *byte 305 Controllen uint64 306 Flags int32 307 Pad_cgo_1 [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 Pad_cgo_0 [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 X__ifi_pad 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 Pad_cgo_0 [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 Regs [32]uint64 589 Lo uint64 590 Hi uint64 591 Epc uint64 592 Badvaddr uint64 593 Status uint64 594 Cause uint64 595 } 596 597 type FdSet struct { 598 Bits [16]int64 599 } 600 601 type Sysinfo_t struct { 602 Uptime int64 603 Loads [3]uint64 604 Totalram uint64 605 Freeram uint64 606 Sharedram uint64 607 Bufferram uint64 608 Totalswap uint64 609 Freeswap uint64 610 Procs uint16 611 Pad uint16 612 Pad_cgo_0 [4]byte 613 Totalhigh uint64 614 Freehigh uint64 615 Unit uint32 616 X_f [0]int8 617 Pad_cgo_1 [4]byte 618 } 619 620 type Utsname struct { 621 Sysname [65]int8 622 Nodename [65]int8 623 Release [65]int8 624 Version [65]int8 625 Machine [65]int8 626 Domainname [65]int8 627 } 628 629 type Ustat_t struct { 630 Tfree int32 631 Pad_cgo_0 [4]byte 632 Tinode uint64 633 Fname [6]int8 634 Fpack [6]int8 635 Pad_cgo_1 [4]byte 636 } 637 638 type EpollEvent struct { 639 Events uint32 640 Fd int32 641 Pad int32 642 } 643 644 const ( 645 AT_FDCWD = -0x64 646 AT_REMOVEDIR = 0x200 647 AT_SYMLINK_FOLLOW = 0x400 648 AT_SYMLINK_NOFOLLOW = 0x100 649 ) 650 651 type PollFd struct { 652 Fd int32 653 Events int16 654 Revents int16 655 } 656 657 const ( 658 POLLIN = 0x1 659 POLLPRI = 0x2 660 POLLOUT = 0x4 661 POLLRDHUP = 0x2000 662 POLLERR = 0x8 663 POLLHUP = 0x10 664 POLLNVAL = 0x20 665 ) 666 667 type Sigset_t struct { 668 X__val [16]uint64 669 } 670 671 const RNDGETENTCNT = 0x40045200 672 673 const PERF_IOC_FLAG_GROUP = 0x1 674 675 type Termios struct { 676 Iflag uint32 677 Oflag uint32 678 Cflag uint32 679 Lflag uint32 680 Line uint8 681 Cc [23]uint8 682 Ispeed uint32 683 Ospeed uint32 684 } 685 686 type Winsize struct { 687 Row uint16 688 Col uint16 689 Xpixel uint16 690 Ypixel uint16 691 } 692 693 type Taskstats struct { 694 Version uint16 695 Pad_cgo_0 [2]byte 696 Ac_exitcode uint32 697 Ac_flag uint8 698 Ac_nice uint8 699 Pad_cgo_1 [6]byte 700 Cpu_count uint64 701 Cpu_delay_total uint64 702 Blkio_count uint64 703 Blkio_delay_total uint64 704 Swapin_count uint64 705 Swapin_delay_total uint64 706 Cpu_run_real_total uint64 707 Cpu_run_virtual_total uint64 708 Ac_comm [32]int8 709 Ac_sched uint8 710 Ac_pad [3]uint8 711 Pad_cgo_2 [4]byte 712 Ac_uid uint32 713 Ac_gid uint32 714 Ac_pid uint32 715 Ac_ppid uint32 716 Ac_btime uint32 717 Pad_cgo_3 [4]byte 718 Ac_etime uint64 719 Ac_utime uint64 720 Ac_stime uint64 721 Ac_minflt uint64 722 Ac_majflt uint64 723 Coremem uint64 724 Virtmem uint64 725 Hiwater_rss uint64 726 Hiwater_vm uint64 727 Read_char uint64 728 Write_char uint64 729 Read_syscalls uint64 730 Write_syscalls uint64 731 Read_bytes uint64 732 Write_bytes uint64 733 Cancelled_write_bytes uint64 734 Nvcsw uint64 735 Nivcsw uint64 736 Ac_utimescaled uint64 737 Ac_stimescaled uint64 738 Cpu_scaled_run_real_total uint64 739 Freepages_count uint64 740 Freepages_delay_total uint64 741 } 742 743 const ( 744 TASKSTATS_CMD_UNSPEC = 0x0 745 TASKSTATS_CMD_GET = 0x1 746 TASKSTATS_CMD_NEW = 0x2 747 TASKSTATS_TYPE_UNSPEC = 0x0 748 TASKSTATS_TYPE_PID = 0x1 749 TASKSTATS_TYPE_TGID = 0x2 750 TASKSTATS_TYPE_STATS = 0x3 751 TASKSTATS_TYPE_AGGR_PID = 0x4 752 TASKSTATS_TYPE_AGGR_TGID = 0x5 753 TASKSTATS_TYPE_NULL = 0x6 754 TASKSTATS_CMD_ATTR_UNSPEC = 0x0 755 TASKSTATS_CMD_ATTR_PID = 0x1 756 TASKSTATS_CMD_ATTR_TGID = 0x2 757 TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 758 TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 759 ) 760 761 type Genlmsghdr struct { 762 Cmd uint8 763 Version uint8 764 Reserved uint16 765 } 766 767 const ( 768 CTRL_CMD_UNSPEC = 0x0 769 CTRL_CMD_NEWFAMILY = 0x1 770 CTRL_CMD_DELFAMILY = 0x2 771 CTRL_CMD_GETFAMILY = 0x3 772 CTRL_CMD_NEWOPS = 0x4 773 CTRL_CMD_DELOPS = 0x5 774 CTRL_CMD_GETOPS = 0x6 775 CTRL_CMD_NEWMCAST_GRP = 0x7 776 CTRL_CMD_DELMCAST_GRP = 0x8 777 CTRL_CMD_GETMCAST_GRP = 0x9 778 CTRL_ATTR_UNSPEC = 0x0 779 CTRL_ATTR_FAMILY_ID = 0x1 780 CTRL_ATTR_FAMILY_NAME = 0x2 781 CTRL_ATTR_VERSION = 0x3 782 CTRL_ATTR_HDRSIZE = 0x4 783 CTRL_ATTR_MAXATTR = 0x5 784 CTRL_ATTR_OPS = 0x6 785 CTRL_ATTR_MCAST_GROUPS = 0x7 786 CTRL_ATTR_OP_UNSPEC = 0x0 787 CTRL_ATTR_OP_ID = 0x1 788 CTRL_ATTR_OP_FLAGS = 0x2 789 CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 790 CTRL_ATTR_MCAST_GRP_NAME = 0x1 791 CTRL_ATTR_MCAST_GRP_ID = 0x2 792 )