github.com/aayushi-bansal/sys@v0.0.0-20180118120756-90d962a959d8/unix/ztypes_linux_arm64.go (about) 1 // cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 4 // +build arm64,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 Mode uint32 105 Nlink uint32 106 Uid uint32 107 Gid uint32 108 Rdev uint64 109 X__pad1 uint64 110 Size int64 111 Blksize int32 112 X__pad2 int32 113 Blocks int64 114 Atim Timespec 115 Mtim Timespec 116 Ctim Timespec 117 _ [2]int32 118 } 119 120 type Statfs_t struct { 121 Type int64 122 Bsize int64 123 Blocks uint64 124 Bfree uint64 125 Bavail uint64 126 Files uint64 127 Ffree uint64 128 Fsid Fsid 129 Namelen int64 130 Frsize int64 131 Flags int64 132 Spare [4]int64 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 uint64 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 Pad_cgo_0 [4]byte 332 Iov *Iovec 333 Iovlen uint64 334 Control *byte 335 Controllen uint64 336 Flags int32 337 Pad_cgo_1 [4]byte 338 } 339 340 type Cmsghdr struct { 341 Len uint64 342 Level int32 343 Type int32 344 } 345 346 type Inet4Pktinfo struct { 347 Ifindex int32 348 Spec_dst [4]byte /* in_addr */ 349 Addr [4]byte /* in_addr */ 350 } 351 352 type Inet6Pktinfo struct { 353 Addr [16]byte /* in6_addr */ 354 Ifindex uint32 355 } 356 357 type IPv6MTUInfo struct { 358 Addr RawSockaddrInet6 359 Mtu uint32 360 } 361 362 type ICMPv6Filter struct { 363 Data [8]uint32 364 } 365 366 type Ucred struct { 367 Pid int32 368 Uid uint32 369 Gid uint32 370 } 371 372 type TCPInfo struct { 373 State uint8 374 Ca_state uint8 375 Retransmits uint8 376 Probes uint8 377 Backoff uint8 378 Options uint8 379 Pad_cgo_0 [2]byte 380 Rto uint32 381 Ato uint32 382 Snd_mss uint32 383 Rcv_mss uint32 384 Unacked uint32 385 Sacked uint32 386 Lost uint32 387 Retrans uint32 388 Fackets uint32 389 Last_data_sent uint32 390 Last_ack_sent uint32 391 Last_data_recv uint32 392 Last_ack_recv uint32 393 Pmtu uint32 394 Rcv_ssthresh uint32 395 Rtt uint32 396 Rttvar uint32 397 Snd_ssthresh uint32 398 Snd_cwnd uint32 399 Advmss uint32 400 Reordering uint32 401 Rcv_rtt uint32 402 Rcv_space uint32 403 Total_retrans uint32 404 } 405 406 const ( 407 SizeofSockaddrInet4 = 0x10 408 SizeofSockaddrInet6 = 0x1c 409 SizeofSockaddrAny = 0x70 410 SizeofSockaddrUnix = 0x6e 411 SizeofSockaddrLinklayer = 0x14 412 SizeofSockaddrNetlink = 0xc 413 SizeofSockaddrHCI = 0x6 414 SizeofSockaddrCAN = 0x10 415 SizeofSockaddrALG = 0x58 416 SizeofSockaddrVM = 0x10 417 SizeofLinger = 0x8 418 SizeofIovec = 0x10 419 SizeofIPMreq = 0x8 420 SizeofIPMreqn = 0xc 421 SizeofIPv6Mreq = 0x14 422 SizeofPacketMreq = 0x10 423 SizeofMsghdr = 0x38 424 SizeofCmsghdr = 0x10 425 SizeofInet4Pktinfo = 0xc 426 SizeofInet6Pktinfo = 0x14 427 SizeofIPv6MTUInfo = 0x20 428 SizeofICMPv6Filter = 0x20 429 SizeofUcred = 0xc 430 SizeofTCPInfo = 0x68 431 ) 432 433 const ( 434 IFA_UNSPEC = 0x0 435 IFA_ADDRESS = 0x1 436 IFA_LOCAL = 0x2 437 IFA_LABEL = 0x3 438 IFA_BROADCAST = 0x4 439 IFA_ANYCAST = 0x5 440 IFA_CACHEINFO = 0x6 441 IFA_MULTICAST = 0x7 442 IFLA_UNSPEC = 0x0 443 IFLA_ADDRESS = 0x1 444 IFLA_BROADCAST = 0x2 445 IFLA_IFNAME = 0x3 446 IFLA_MTU = 0x4 447 IFLA_LINK = 0x5 448 IFLA_QDISC = 0x6 449 IFLA_STATS = 0x7 450 IFLA_COST = 0x8 451 IFLA_PRIORITY = 0x9 452 IFLA_MASTER = 0xa 453 IFLA_WIRELESS = 0xb 454 IFLA_PROTINFO = 0xc 455 IFLA_TXQLEN = 0xd 456 IFLA_MAP = 0xe 457 IFLA_WEIGHT = 0xf 458 IFLA_OPERSTATE = 0x10 459 IFLA_LINKMODE = 0x11 460 IFLA_LINKINFO = 0x12 461 IFLA_NET_NS_PID = 0x13 462 IFLA_IFALIAS = 0x14 463 IFLA_MAX = 0x2c 464 RT_SCOPE_UNIVERSE = 0x0 465 RT_SCOPE_SITE = 0xc8 466 RT_SCOPE_LINK = 0xfd 467 RT_SCOPE_HOST = 0xfe 468 RT_SCOPE_NOWHERE = 0xff 469 RT_TABLE_UNSPEC = 0x0 470 RT_TABLE_COMPAT = 0xfc 471 RT_TABLE_DEFAULT = 0xfd 472 RT_TABLE_MAIN = 0xfe 473 RT_TABLE_LOCAL = 0xff 474 RT_TABLE_MAX = 0xffffffff 475 RTA_UNSPEC = 0x0 476 RTA_DST = 0x1 477 RTA_SRC = 0x2 478 RTA_IIF = 0x3 479 RTA_OIF = 0x4 480 RTA_GATEWAY = 0x5 481 RTA_PRIORITY = 0x6 482 RTA_PREFSRC = 0x7 483 RTA_METRICS = 0x8 484 RTA_MULTIPATH = 0x9 485 RTA_FLOW = 0xb 486 RTA_CACHEINFO = 0xc 487 RTA_TABLE = 0xf 488 RTN_UNSPEC = 0x0 489 RTN_UNICAST = 0x1 490 RTN_LOCAL = 0x2 491 RTN_BROADCAST = 0x3 492 RTN_ANYCAST = 0x4 493 RTN_MULTICAST = 0x5 494 RTN_BLACKHOLE = 0x6 495 RTN_UNREACHABLE = 0x7 496 RTN_PROHIBIT = 0x8 497 RTN_THROW = 0x9 498 RTN_NAT = 0xa 499 RTN_XRESOLVE = 0xb 500 RTNLGRP_NONE = 0x0 501 RTNLGRP_LINK = 0x1 502 RTNLGRP_NOTIFY = 0x2 503 RTNLGRP_NEIGH = 0x3 504 RTNLGRP_TC = 0x4 505 RTNLGRP_IPV4_IFADDR = 0x5 506 RTNLGRP_IPV4_MROUTE = 0x6 507 RTNLGRP_IPV4_ROUTE = 0x7 508 RTNLGRP_IPV4_RULE = 0x8 509 RTNLGRP_IPV6_IFADDR = 0x9 510 RTNLGRP_IPV6_MROUTE = 0xa 511 RTNLGRP_IPV6_ROUTE = 0xb 512 RTNLGRP_IPV6_IFINFO = 0xc 513 RTNLGRP_IPV6_PREFIX = 0x12 514 RTNLGRP_IPV6_RULE = 0x13 515 RTNLGRP_ND_USEROPT = 0x14 516 SizeofNlMsghdr = 0x10 517 SizeofNlMsgerr = 0x14 518 SizeofRtGenmsg = 0x1 519 SizeofNlAttr = 0x4 520 SizeofRtAttr = 0x4 521 SizeofIfInfomsg = 0x10 522 SizeofIfAddrmsg = 0x8 523 SizeofRtMsg = 0xc 524 SizeofRtNexthop = 0x8 525 ) 526 527 type NlMsghdr struct { 528 Len uint32 529 Type uint16 530 Flags uint16 531 Seq uint32 532 Pid uint32 533 } 534 535 type NlMsgerr struct { 536 Error int32 537 Msg NlMsghdr 538 } 539 540 type RtGenmsg struct { 541 Family uint8 542 } 543 544 type NlAttr struct { 545 Len uint16 546 Type uint16 547 } 548 549 type RtAttr struct { 550 Len uint16 551 Type uint16 552 } 553 554 type IfInfomsg struct { 555 Family uint8 556 X__ifi_pad uint8 557 Type uint16 558 Index int32 559 Flags uint32 560 Change uint32 561 } 562 563 type IfAddrmsg struct { 564 Family uint8 565 Prefixlen uint8 566 Flags uint8 567 Scope uint8 568 Index uint32 569 } 570 571 type RtMsg struct { 572 Family uint8 573 Dst_len uint8 574 Src_len uint8 575 Tos uint8 576 Table uint8 577 Protocol uint8 578 Scope uint8 579 Type uint8 580 Flags uint32 581 } 582 583 type RtNexthop struct { 584 Len uint16 585 Flags uint8 586 Hops uint8 587 Ifindex int32 588 } 589 590 const ( 591 SizeofSockFilter = 0x8 592 SizeofSockFprog = 0x10 593 ) 594 595 type SockFilter struct { 596 Code uint16 597 Jt uint8 598 Jf uint8 599 K uint32 600 } 601 602 type SockFprog struct { 603 Len uint16 604 Pad_cgo_0 [6]byte 605 Filter *SockFilter 606 } 607 608 type InotifyEvent struct { 609 Wd int32 610 Mask uint32 611 Cookie uint32 612 Len uint32 613 } 614 615 const SizeofInotifyEvent = 0x10 616 617 type PtraceRegs struct { 618 Regs [31]uint64 619 Sp uint64 620 Pc uint64 621 Pstate uint64 622 } 623 624 type FdSet struct { 625 Bits [16]int64 626 } 627 628 type Sysinfo_t struct { 629 Uptime int64 630 Loads [3]uint64 631 Totalram uint64 632 Freeram uint64 633 Sharedram uint64 634 Bufferram uint64 635 Totalswap uint64 636 Freeswap uint64 637 Procs uint16 638 Pad uint16 639 Pad_cgo_0 [4]byte 640 Totalhigh uint64 641 Freehigh uint64 642 Unit uint32 643 X_f [0]int8 644 Pad_cgo_1 [4]byte 645 } 646 647 type Utsname struct { 648 Sysname [65]byte 649 Nodename [65]byte 650 Release [65]byte 651 Version [65]byte 652 Machine [65]byte 653 Domainname [65]byte 654 } 655 656 type Ustat_t struct { 657 Tfree int32 658 Pad_cgo_0 [4]byte 659 Tinode uint64 660 Fname [6]int8 661 Fpack [6]int8 662 Pad_cgo_1 [4]byte 663 } 664 665 type EpollEvent struct { 666 Events uint32 667 PadFd int32 668 Fd int32 669 Pad int32 670 } 671 672 const ( 673 AT_EMPTY_PATH = 0x1000 674 AT_FDCWD = -0x64 675 AT_NO_AUTOMOUNT = 0x800 676 AT_REMOVEDIR = 0x200 677 678 AT_STATX_SYNC_AS_STAT = 0x0 679 AT_STATX_FORCE_SYNC = 0x2000 680 AT_STATX_DONT_SYNC = 0x4000 681 682 AT_SYMLINK_FOLLOW = 0x400 683 AT_SYMLINK_NOFOLLOW = 0x100 684 ) 685 686 type PollFd struct { 687 Fd int32 688 Events int16 689 Revents int16 690 } 691 692 const ( 693 POLLIN = 0x1 694 POLLPRI = 0x2 695 POLLOUT = 0x4 696 POLLRDHUP = 0x2000 697 POLLERR = 0x8 698 POLLHUP = 0x10 699 POLLNVAL = 0x20 700 ) 701 702 type Sigset_t struct { 703 X__val [16]uint64 704 } 705 706 const RNDGETENTCNT = 0x80045200 707 708 const PERF_IOC_FLAG_GROUP = 0x1 709 710 type Termios struct { 711 Iflag uint32 712 Oflag uint32 713 Cflag uint32 714 Lflag uint32 715 Line uint8 716 Cc [19]uint8 717 Ispeed uint32 718 Ospeed uint32 719 } 720 721 type Winsize struct { 722 Row uint16 723 Col uint16 724 Xpixel uint16 725 Ypixel uint16 726 } 727 728 type Taskstats struct { 729 Version uint16 730 Pad_cgo_0 [2]byte 731 Ac_exitcode uint32 732 Ac_flag uint8 733 Ac_nice uint8 734 Pad_cgo_1 [6]byte 735 Cpu_count uint64 736 Cpu_delay_total uint64 737 Blkio_count uint64 738 Blkio_delay_total uint64 739 Swapin_count uint64 740 Swapin_delay_total uint64 741 Cpu_run_real_total uint64 742 Cpu_run_virtual_total uint64 743 Ac_comm [32]int8 744 Ac_sched uint8 745 Ac_pad [3]uint8 746 Pad_cgo_2 [4]byte 747 Ac_uid uint32 748 Ac_gid uint32 749 Ac_pid uint32 750 Ac_ppid uint32 751 Ac_btime uint32 752 Pad_cgo_3 [4]byte 753 Ac_etime uint64 754 Ac_utime uint64 755 Ac_stime uint64 756 Ac_minflt uint64 757 Ac_majflt uint64 758 Coremem uint64 759 Virtmem uint64 760 Hiwater_rss uint64 761 Hiwater_vm uint64 762 Read_char uint64 763 Write_char uint64 764 Read_syscalls uint64 765 Write_syscalls uint64 766 Read_bytes uint64 767 Write_bytes uint64 768 Cancelled_write_bytes uint64 769 Nvcsw uint64 770 Nivcsw uint64 771 Ac_utimescaled uint64 772 Ac_stimescaled uint64 773 Cpu_scaled_run_real_total uint64 774 Freepages_count uint64 775 Freepages_delay_total uint64 776 } 777 778 const ( 779 TASKSTATS_CMD_UNSPEC = 0x0 780 TASKSTATS_CMD_GET = 0x1 781 TASKSTATS_CMD_NEW = 0x2 782 TASKSTATS_TYPE_UNSPEC = 0x0 783 TASKSTATS_TYPE_PID = 0x1 784 TASKSTATS_TYPE_TGID = 0x2 785 TASKSTATS_TYPE_STATS = 0x3 786 TASKSTATS_TYPE_AGGR_PID = 0x4 787 TASKSTATS_TYPE_AGGR_TGID = 0x5 788 TASKSTATS_TYPE_NULL = 0x6 789 TASKSTATS_CMD_ATTR_UNSPEC = 0x0 790 TASKSTATS_CMD_ATTR_PID = 0x1 791 TASKSTATS_CMD_ATTR_TGID = 0x2 792 TASKSTATS_CMD_ATTR_REGISTER_CPUMASK = 0x3 793 TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK = 0x4 794 ) 795 796 type CGroupStats struct { 797 Sleeping uint64 798 Running uint64 799 Stopped uint64 800 Uninterruptible uint64 801 Io_wait uint64 802 } 803 804 const ( 805 CGROUPSTATS_CMD_UNSPEC = 0x3 806 CGROUPSTATS_CMD_GET = 0x4 807 CGROUPSTATS_CMD_NEW = 0x5 808 CGROUPSTATS_TYPE_UNSPEC = 0x0 809 CGROUPSTATS_TYPE_CGROUP_STATS = 0x1 810 CGROUPSTATS_CMD_ATTR_UNSPEC = 0x0 811 CGROUPSTATS_CMD_ATTR_FD = 0x1 812 ) 813 814 type Genlmsghdr struct { 815 Cmd uint8 816 Version uint8 817 Reserved uint16 818 } 819 820 const ( 821 CTRL_CMD_UNSPEC = 0x0 822 CTRL_CMD_NEWFAMILY = 0x1 823 CTRL_CMD_DELFAMILY = 0x2 824 CTRL_CMD_GETFAMILY = 0x3 825 CTRL_CMD_NEWOPS = 0x4 826 CTRL_CMD_DELOPS = 0x5 827 CTRL_CMD_GETOPS = 0x6 828 CTRL_CMD_NEWMCAST_GRP = 0x7 829 CTRL_CMD_DELMCAST_GRP = 0x8 830 CTRL_CMD_GETMCAST_GRP = 0x9 831 CTRL_ATTR_UNSPEC = 0x0 832 CTRL_ATTR_FAMILY_ID = 0x1 833 CTRL_ATTR_FAMILY_NAME = 0x2 834 CTRL_ATTR_VERSION = 0x3 835 CTRL_ATTR_HDRSIZE = 0x4 836 CTRL_ATTR_MAXATTR = 0x5 837 CTRL_ATTR_OPS = 0x6 838 CTRL_ATTR_MCAST_GROUPS = 0x7 839 CTRL_ATTR_OP_UNSPEC = 0x0 840 CTRL_ATTR_OP_ID = 0x1 841 CTRL_ATTR_OP_FLAGS = 0x2 842 CTRL_ATTR_MCAST_GRP_UNSPEC = 0x0 843 CTRL_ATTR_MCAST_GRP_NAME = 0x1 844 CTRL_ATTR_MCAST_GRP_ID = 0x2 845 ) 846 847 type cpuMask uint64 848 849 const ( 850 _CPU_SETSIZE = 0x400 851 _NCPUBITS = 0x40 852 )