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 mips,linux 5 6package unix 7 8const ( 9 sizeofPtr = 0x4 10 sizeofShort = 0x2 11 sizeofInt = 0x4 12 sizeofLong = 0x4 13 sizeofLongLong = 0x8 14 PathMax = 0x1000 15) 16 17type ( 18 _C_short int16 19 _C_int int32 20 _C_long int32 21 _C_long_long int64 22) 23 24type Timespec struct { 25 Sec int32 26 Nsec int32 27} 28 29type Timeval struct { 30 Sec int32 31 Usec int32 32} 33 34type Timex struct { 35 Modes uint32 36 Offset int32 37 Freq int32 38 Maxerror int32 39 Esterror int32 40 Status int32 41 Constant int32 42 Precision int32 43 Tolerance int32 44 Time Timeval 45 Tick int32 46 Ppsfreq int32 47 Jitter int32 48 Shift int32 49 Stabil int32 50 Jitcnt int32 51 Calcnt int32 52 Errcnt int32 53 Stbcnt int32 54 Tai int32 55 _ [44]byte 56} 57 58type Time_t int32 59 60type Tms struct { 61 Utime int32 62 Stime int32 63 Cutime int32 64 Cstime int32 65} 66 67type Utimbuf struct { 68 Actime int32 69 Modtime int32 70} 71 72type Rusage struct { 73 Utime Timeval 74 Stime Timeval 75 Maxrss int32 76 Ixrss int32 77 Idrss int32 78 Isrss int32 79 Minflt int32 80 Majflt int32 81 Nswap int32 82 Inblock int32 83 Oublock int32 84 Msgsnd int32 85 Msgrcv int32 86 Nsignals int32 87 Nvcsw int32 88 Nivcsw int32 89} 90 91type Rlimit struct { 92 Cur uint64 93 Max uint64 94} 95 96type _Gid_t uint32 97 98type Stat_t struct { 99 Dev uint32 100 Pad1 [3]int32 101 Ino uint64 102 Mode uint32 103 Nlink uint32 104 Uid uint32 105 Gid uint32 106 Rdev uint32 107 Pad2 [3]int32 108 Size int64 109 Atim Timespec 110 Mtim Timespec 111 Ctim Timespec 112 Blksize int32 113 Pad4 int32 114 Blocks int64 115 Pad5 [14]int32 116} 117 118type Statfs_t struct { 119 Type int32 120 Bsize int32 121 Frsize int32 122 _ [4]byte 123 Blocks uint64 124 Bfree uint64 125 Files uint64 126 Ffree uint64 127 Bavail uint64 128 Fsid Fsid 129 Namelen int32 130 Flags int32 131 Spare [5]int32 132 _ [4]byte 133} 134 135type StatxTimestamp struct { 136 Sec int64 137 Nsec uint32 138 X__reserved 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 X__val [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 = 0x4 214 FADV_NOREUSE = 0x5 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 uint32 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 Iov *Iovec 341 Iovlen uint32 342 Control *byte 343 Controllen uint32 344 Flags int32 345} 346 347type Cmsghdr struct { 348 Len uint32 349 Level int32 350 Type int32 351} 352 353type Inet4Pktinfo struct { 354 Ifindex int32 355 Spec_dst [4]byte /* in_addr */ 356 Addr [4]byte /* in_addr */ 357} 358 359type Inet6Pktinfo struct { 360 Addr [16]byte /* in6_addr */ 361 Ifindex uint32 362} 363 364type IPv6MTUInfo struct { 365 Addr RawSockaddrInet6 366 Mtu uint32 367} 368 369type ICMPv6Filter struct { 370 Data [8]uint32 371} 372 373type Ucred struct { 374 Pid int32 375 Uid uint32 376 Gid uint32 377} 378 379type TCPInfo struct { 380 State uint8 381 Ca_state uint8 382 Retransmits uint8 383 Probes uint8 384 Backoff uint8 385 Options uint8 386 _ [2]byte 387 Rto uint32 388 Ato uint32 389 Snd_mss uint32 390 Rcv_mss uint32 391 Unacked uint32 392 Sacked uint32 393 Lost uint32 394 Retrans uint32 395 Fackets uint32 396 Last_data_sent uint32 397 Last_ack_sent uint32 398 Last_data_recv uint32 399 Last_ack_recv uint32 400 Pmtu uint32 401 Rcv_ssthresh uint32 402 Rtt uint32 403 Rttvar uint32 404 Snd_ssthresh uint32 405 Snd_cwnd uint32 406 Advmss uint32 407 Reordering uint32 408 Rcv_rtt uint32 409 Rcv_space uint32 410 Total_retrans uint32 411} 412 413const ( 414 SizeofSockaddrInet4 = 0x10 415 SizeofSockaddrInet6 = 0x1c 416 SizeofSockaddrAny = 0x70 417 SizeofSockaddrUnix = 0x6e 418 SizeofSockaddrLinklayer = 0x14 419 SizeofSockaddrNetlink = 0xc 420 SizeofSockaddrHCI = 0x6 421 SizeofSockaddrL2 = 0xe 422 SizeofSockaddrCAN = 0x10 423 SizeofSockaddrALG = 0x58 424 SizeofSockaddrVM = 0x10 425 SizeofLinger = 0x8 426 SizeofIovec = 0x8 427 SizeofIPMreq = 0x8 428 SizeofIPMreqn = 0xc 429 SizeofIPv6Mreq = 0x14 430 SizeofPacketMreq = 0x10 431 SizeofMsghdr = 0x1c 432 SizeofCmsghdr = 0xc 433 SizeofInet4Pktinfo = 0xc 434 SizeofInet6Pktinfo = 0x14 435 SizeofIPv6MTUInfo = 0x20 436 SizeofICMPv6Filter = 0x20 437 SizeofUcred = 0xc 438 SizeofTCPInfo = 0x68 439) 440 441const ( 442 IFA_UNSPEC = 0x0 443 IFA_ADDRESS = 0x1 444 IFA_LOCAL = 0x2 445 IFA_LABEL = 0x3 446 IFA_BROADCAST = 0x4 447 IFA_ANYCAST = 0x5 448 IFA_CACHEINFO = 0x6 449 IFA_MULTICAST = 0x7 450 IFLA_UNSPEC = 0x0 451 IFLA_ADDRESS = 0x1 452 IFLA_BROADCAST = 0x2 453 IFLA_IFNAME = 0x3 454 IFLA_MTU = 0x4 455 IFLA_LINK = 0x5 456 IFLA_QDISC = 0x6 457 IFLA_STATS = 0x7 458 IFLA_COST = 0x8 459 IFLA_PRIORITY = 0x9 460 IFLA_MASTER = 0xa 461 IFLA_WIRELESS = 0xb 462 IFLA_PROTINFO = 0xc 463 IFLA_TXQLEN = 0xd 464 IFLA_MAP = 0xe 465 IFLA_WEIGHT = 0xf 466 IFLA_OPERSTATE = 0x10 467 IFLA_LINKMODE = 0x11 468 IFLA_LINKINFO = 0x12 469 IFLA_NET_NS_PID = 0x13 470 IFLA_IFALIAS = 0x14 471 IFLA_MAX = 0x2c 472 RT_SCOPE_UNIVERSE = 0x0 473 RT_SCOPE_SITE = 0xc8 474 RT_SCOPE_LINK = 0xfd 475 RT_SCOPE_HOST = 0xfe 476 RT_SCOPE_NOWHERE = 0xff 477 RT_TABLE_UNSPEC = 0x0 478 RT_TABLE_COMPAT = 0xfc 479 RT_TABLE_DEFAULT = 0xfd 480 RT_TABLE_MAIN = 0xfe 481 RT_TABLE_LOCAL = 0xff 482 RT_TABLE_MAX = 0xffffffff 483 RTA_UNSPEC = 0x0 484 RTA_DST = 0x1 485 RTA_SRC = 0x2 486 RTA_IIF = 0x3 487 RTA_OIF = 0x4 488 RTA_GATEWAY = 0x5 489 RTA_PRIORITY = 0x6 490 RTA_PREFSRC = 0x7 491 RTA_METRICS = 0x8 492 RTA_MULTIPATH = 0x9 493 RTA_FLOW = 0xb 494 RTA_CACHEINFO = 0xc 495 RTA_TABLE = 0xf 496 RTN_UNSPEC = 0x0 497 RTN_UNICAST = 0x1 498 RTN_LOCAL = 0x2 499 RTN_BROADCAST = 0x3 500 RTN_ANYCAST = 0x4 501 RTN_MULTICAST = 0x5 502 RTN_BLACKHOLE = 0x6 503 RTN_UNREACHABLE = 0x7 504 RTN_PROHIBIT = 0x8 505 RTN_THROW = 0x9 506 RTN_NAT = 0xa 507 RTN_XRESOLVE = 0xb 508 RTNLGRP_NONE = 0x0 509 RTNLGRP_LINK = 0x1 510 RTNLGRP_NOTIFY = 0x2 511 RTNLGRP_NEIGH = 0x3 512 RTNLGRP_TC = 0x4 513 RTNLGRP_IPV4_IFADDR = 0x5 514 RTNLGRP_IPV4_MROUTE = 0x6 515 RTNLGRP_IPV4_ROUTE = 0x7 516 RTNLGRP_IPV4_RULE = 0x8 517 RTNLGRP_IPV6_IFADDR = 0x9 518 RTNLGRP_IPV6_MROUTE = 0xa 519 RTNLGRP_IPV6_ROUTE = 0xb 520 RTNLGRP_IPV6_IFINFO = 0xc 521 RTNLGRP_IPV6_PREFIX = 0x12 522 RTNLGRP_IPV6_RULE = 0x13 523 RTNLGRP_ND_USEROPT = 0x14 524 SizeofNlMsghdr = 0x10 525 SizeofNlMsgerr = 0x14 526 SizeofRtGenmsg = 0x1 527 SizeofNlAttr = 0x4 528 SizeofRtAttr = 0x4 529 SizeofIfInfomsg = 0x10 530 SizeofIfAddrmsg = 0x8 531 SizeofRtMsg = 0xc 532 SizeofRtNexthop = 0x8 533) 534 535type NlMsghdr struct { 536 Len uint32 537 Type uint16 538 Flags uint16 539 Seq uint32 540 Pid uint32 541} 542 543type NlMsgerr struct { 544 Error int32 545 Msg NlMsghdr 546} 547 548type RtGenmsg struct { 549 Family uint8 550} 551 552type NlAttr struct { 553 Len uint16 554 Type uint16 555} 556 557type RtAttr struct { 558 Len uint16 559 Type uint16 560} 561 562type IfInfomsg struct { 563 Family uint8 564 X__ifi_pad uint8 565 Type uint16 566 Index int32 567 Flags uint32 568 Change uint32 569} 570 571type IfAddrmsg struct { 572 Family uint8 573 Prefixlen uint8 574 Flags uint8 575 Scope uint8 576 Index uint32 577} 578 579type RtMsg struct { 580 Family uint8 581 Dst_len uint8 582 Src_len uint8 583 Tos uint8 584 Table uint8 585 Protocol uint8 586 Scope uint8 587 Type uint8 588 Flags uint32 589} 590 591type RtNexthop struct { 592 Len uint16 593 Flags uint8 594 Hops uint8 595 Ifindex int32 596} 597 598const ( 599 SizeofSockFilter = 0x8 600 SizeofSockFprog = 0x8 601) 602 603type SockFilter struct { 604 Code uint16 605 Jt uint8 606 Jf uint8 607 K uint32 608} 609 610type SockFprog struct { 611 Len uint16 612 _ [2]byte 613 Filter *SockFilter 614} 615 616type InotifyEvent struct { 617 Wd int32 618 Mask uint32 619 Cookie uint32 620 Len uint32 621} 622 623const SizeofInotifyEvent = 0x10 624 625type PtraceRegs struct { 626 Regs [32]uint64 627 Lo uint64 628 Hi uint64 629 Epc uint64 630 Badvaddr uint64 631 Status uint64 632 Cause uint64 633} 634 635type FdSet struct { 636 Bits [32]int32 637} 638 639type Sysinfo_t struct { 640 Uptime int32 641 Loads [3]uint32 642 Totalram uint32 643 Freeram uint32 644 Sharedram uint32 645 Bufferram uint32 646 Totalswap uint32 647 Freeswap uint32 648 Procs uint16 649 Pad uint16 650 Totalhigh uint32 651 Freehigh uint32 652 Unit uint32 653 X_f [8]int8 654} 655 656type Utsname struct { 657 Sysname [65]byte 658 Nodename [65]byte 659 Release [65]byte 660 Version [65]byte 661 Machine [65]byte 662 Domainname [65]byte 663} 664 665type Ustat_t struct { 666 Tfree int32 667 Tinode uint32 668 Fname [6]int8 669 Fpack [6]int8 670} 671 672type EpollEvent struct { 673 Events uint32 674 PadFd int32 675 Fd int32 676 Pad int32 677} 678 679const ( 680 AT_EMPTY_PATH = 0x1000 681 AT_FDCWD = -0x64 682 AT_NO_AUTOMOUNT = 0x800 683 AT_REMOVEDIR = 0x200 684 685 AT_STATX_SYNC_AS_STAT = 0x0 686 AT_STATX_FORCE_SYNC = 0x2000 687 AT_STATX_DONT_SYNC = 0x4000 688 689 AT_SYMLINK_FOLLOW = 0x400 690 AT_SYMLINK_NOFOLLOW = 0x100 691) 692 693type PollFd struct { 694 Fd int32 695 Events int16 696 Revents int16 697} 698 699const ( 700 POLLIN = 0x1 701 POLLPRI = 0x2 702 POLLOUT = 0x4 703 POLLRDHUP = 0x2000 704 POLLERR = 0x8 705 POLLHUP = 0x10 706 POLLNVAL = 0x20 707) 708 709type Sigset_t struct { 710 X__val [32]uint32 711} 712 713const RNDGETENTCNT = 0x40045200 714 715const PERF_IOC_FLAG_GROUP = 0x1 716 717type Termios struct { 718 Iflag uint32 719 Oflag uint32 720 Cflag uint32 721 Lflag uint32 722 Line uint8 723 Cc [23]uint8 724 Ispeed uint32 725 Ospeed uint32 726} 727 728type Winsize struct { 729 Row uint16 730 Col uint16 731 Xpixel uint16 732 Ypixel uint16 733} 734 735type Taskstats struct { 736 Version uint16 737 _ [2]byte 738 Ac_exitcode uint32 739 Ac_flag uint8 740 Ac_nice uint8 741 _ [6]byte 742 Cpu_count uint64 743 Cpu_delay_total uint64 744 Blkio_count uint64 745 Blkio_delay_total uint64 746 Swapin_count uint64 747 Swapin_delay_total uint64 748 Cpu_run_real_total uint64 749 Cpu_run_virtual_total uint64 750 Ac_comm [32]int8 751 Ac_sched uint8 752 Ac_pad [3]uint8 753 _ [4]byte 754 Ac_uid uint32 755 Ac_gid uint32 756 Ac_pid uint32 757 Ac_ppid uint32 758 Ac_btime uint32 759 _ [4]byte 760 Ac_etime uint64 761 Ac_utime uint64 762 Ac_stime uint64 763 Ac_minflt uint64 764 Ac_majflt uint64 765 Coremem uint64 766 Virtmem uint64 767 Hiwater_rss uint64 768 Hiwater_vm uint64 769 Read_char uint64 770 Write_char uint64 771 Read_syscalls uint64 772 Write_syscalls uint64 773 Read_bytes uint64 774 Write_bytes uint64 775 Cancelled_write_bytes uint64 776 Nvcsw uint64 777 Nivcsw uint64 778 Ac_utimescaled uint64 779 Ac_stimescaled uint64 780 Cpu_scaled_run_real_total uint64 781 Freepages_count uint64 782 Freepages_delay_total uint64 783} 784 785const ( 786 TASKSTATS_CMD_UNSPEC = 0x0 787 TASKSTATS_CMD_GET = 0x1 788 TASKSTATS_CMD_NEW = 0x2 789 TASKSTATS_TYPE_UNSPEC = 0x0 790 TASKSTATS_TYPE_PID = 0x1 791 TASKSTATS_TYPE_TGID = 0x2 792 TASKSTATS_TYPE_STATS = 0x3 793 TASKSTATS_TYPE_AGGR_PID = 0x4 794 TASKSTATS_TYPE_AGGR_TGID = 0x5 795 TASKSTATS_TYPE_NULL = 0x6 796 TASKSTATS_CMD_ATTR_UNSPEC = 0x0 797 TASKSTATS_CMD_ATTR_PID = 0x1 798 TASKSTATS_CMD_ATTR_TGID = 0x2 799 TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 800 TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 801) 802 803type CGroupStats struct { 804 Sleeping uint64 805 Running uint64 806 Stopped uint64 807 Uninterruptible uint64 808 Io_wait uint64 809} 810 811const ( 812 CGROUPSTATS_CMD_UNSPEC = 0x3 813 CGROUPSTATS_CMD_GET = 0x4 814 CGROUPSTATS_CMD_NEW = 0x5 815 CGROUPSTATS_TYPE_UNSPEC = 0x0 816 CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 817 CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 818 CGROUPSTATS_CMD_ATTR_FD = 0x1 819) 820 821type Genlmsghdr struct { 822 Cmd uint8 823 Version uint8 824 Reserved uint16 825} 826 827const ( 828 CTRL_CMD_UNSPEC = 0x0 829 CTRL_CMD_NEWFAMILY = 0x1 830 CTRL_CMD_DELFAMILY = 0x2 831 CTRL_CMD_GETFAMILY = 0x3 832 CTRL_CMD_NEWOPS = 0x4 833 CTRL_CMD_DELOPS = 0x5 834 CTRL_CMD_GETOPS = 0x6 835 CTRL_CMD_NEWMCAST_GRP = 0x7 836 CTRL_CMD_DELMCAST_GRP = 0x8 837 CTRL_CMD_GETMCAST_GRP = 0x9 838 CTRL_ATTR_UNSPEC = 0x0 839 CTRL_ATTR_FAMILY_ID = 0x1 840 CTRL_ATTR_FAMILY_NAME = 0x2 841 CTRL_ATTR_VERSION = 0x3 842 CTRL_ATTR_HDRSIZE = 0x4 843 CTRL_ATTR_MAXATTR = 0x5 844 CTRL_ATTR_OPS = 0x6 845 CTRL_ATTR_MCAST_GROUPS = 0x7 846 CTRL_ATTR_OP_UNSPEC = 0x0 847 CTRL_ATTR_OP_ID = 0x1 848 CTRL_ATTR_OP_FLAGS = 0x2 849 CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 850 CTRL_ATTR_MCAST_GRP_NAME = 0x1 851 CTRL_ATTR_MCAST_GRP_ID = 0x2 852) 853 854type cpuMask uint32 855 856const ( 857 _CPU_SETSIZE = 0x400 858 _NCPUBITS = 0x20 859) 860 861const ( 862 BDADDR_BREDR = 0x0 863 BDADDR_LE_PUBLIC = 0x1 864 BDADDR_LE_RANDOM = 0x2 865) 866