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