github.com/jgarto/itcv@v0.0.0-20180826224514-4eea09c1aa0d/_vendor/src/golang.org/x/sys/unix/ztypes_linux_arm64.go (about) 1 // +build arm64,linux 2 // Created by cgo -godefs - DO NOT EDIT 3 // cgo -godefs -- -fsigned-char types_linux.go 4 5 package unix 6 7 const ( 8 sizeofPtr = 0x8 9 sizeofShort = 0x2 10 sizeofInt = 0x4 11 sizeofLong = 0x8 12 sizeofLongLong = 0x8 13 PathMax = 0x1000 14 ) 15 16 type ( 17 _C_short int16 18 _C_int int32 19 _C_long int64 20 _C_long_long int64 21 ) 22 23 type Timespec struct { 24 Sec int64 25 Nsec int64 26 } 27 28 type Timeval struct { 29 Sec int64 30 Usec int64 31 } 32 33 type Timex struct { 34 Modes uint32 35 Pad_cgo_0 [4]byte 36 Offset int64 37 Freq int64 38 Maxerror int64 39 Esterror int64 40 Status int32 41 Pad_cgo_1 [4]byte 42 Constant int64 43 Precision int64 44 Tolerance int64 45 Time Timeval 46 Tick int64 47 Ppsfreq int64 48 Jitter int64 49 Shift int32 50 Pad_cgo_2 [4]byte 51 Stabil int64 52 Jitcnt int64 53 Calcnt int64 54 Errcnt int64 55 Stbcnt int64 56 Tai int32 57 Pad_cgo_3 [44]byte 58 } 59 60 type Time_t int64 61 62 type Tms struct { 63 Utime int64 64 Stime int64 65 Cutime int64 66 Cstime int64 67 } 68 69 type Utimbuf struct { 70 Actime int64 71 Modtime int64 72 } 73 74 type Rusage struct { 75 Utime Timeval 76 Stime Timeval 77 Maxrss int64 78 Ixrss int64 79 Idrss int64 80 Isrss int64 81 Minflt int64 82 Majflt int64 83 Nswap int64 84 Inblock int64 85 Oublock int64 86 Msgsnd int64 87 Msgrcv int64 88 Nsignals int64 89 Nvcsw int64 90 Nivcsw int64 91 } 92 93 type Rlimit struct { 94 Cur uint64 95 Max uint64 96 } 97 98 type _Gid_t uint32 99 100 type Stat_t struct { 101 Dev uint64 102 Ino uint64 103 Mode uint32 104 Nlink uint32 105 Uid uint32 106 Gid uint32 107 Rdev uint64 108 X__pad1 uint64 109 Size int64 110 Blksize int32 111 X__pad2 int32 112 Blocks int64 113 Atim Timespec 114 Mtim Timespec 115 Ctim Timespec 116 X__glibc_reserved [2]int32 117 } 118 119 type Statfs_t struct { 120 Type int64 121 Bsize int64 122 Blocks uint64 123 Bfree uint64 124 Bavail uint64 125 Files uint64 126 Ffree uint64 127 Fsid Fsid 128 Namelen int64 129 Frsize int64 130 Flags int64 131 Spare [4]int64 132 } 133 134 type Dirent struct { 135 Ino uint64 136 Off int64 137 Reclen uint16 138 Type uint8 139 Name [256]int8 140 Pad_cgo_0 [5]byte 141 } 142 143 type Fsid struct { 144 X__val [2]int32 145 } 146 147 type Flock_t struct { 148 Type int16 149 Whence int16 150 Pad_cgo_0 [4]byte 151 Start int64 152 Len int64 153 Pid int32 154 Pad_cgo_1 [4]byte 155 } 156 157 const ( 158 FADV_NORMAL = 0x0 159 FADV_RANDOM = 0x1 160 FADV_SEQUENTIAL = 0x2 161 FADV_WILLNEED = 0x3 162 FADV_DONTNEED = 0x4 163 FADV_NOREUSE = 0x5 164 ) 165 166 type RawSockaddrInet4 struct { 167 Family uint16 168 Port uint16 169 Addr [4]byte /* in_addr */ 170 Zero [8]uint8 171 } 172 173 type RawSockaddrInet6 struct { 174 Family uint16 175 Port uint16 176 Flowinfo uint32 177 Addr [16]byte /* in6_addr */ 178 Scope_id uint32 179 } 180 181 type RawSockaddrUnix struct { 182 Family uint16 183 Path [108]int8 184 } 185 186 type RawSockaddrLinklayer struct { 187 Family uint16 188 Protocol uint16 189 Ifindex int32 190 Hatype uint16 191 Pkttype uint8 192 Halen uint8 193 Addr [8]uint8 194 } 195 196 type RawSockaddrNetlink struct { 197 Family uint16 198 Pad uint16 199 Pid uint32 200 Groups uint32 201 } 202 203 type RawSockaddrHCI struct { 204 Family uint16 205 Dev uint16 206 Channel uint16 207 } 208 209 type RawSockaddrCAN struct { 210 Family uint16 211 Pad_cgo_0 [2]byte 212 Ifindex int32 213 Addr [8]byte 214 } 215 216 type RawSockaddrALG struct { 217 Family uint16 218 Type [14]uint8 219 Feat uint32 220 Mask uint32 221 Name [64]uint8 222 } 223 224 type RawSockaddrVM struct { 225 Family uint16 226 Reserved1 uint16 227 Port uint32 228 Cid uint32 229 Zero [4]uint8 230 } 231 232 type RawSockaddr struct { 233 Family uint16 234 Data [14]int8 235 } 236 237 type RawSockaddrAny struct { 238 Addr RawSockaddr 239 Pad [96]int8 240 } 241 242 type _Socklen uint32 243 244 type Linger struct { 245 Onoff int32 246 Linger int32 247 } 248 249 type Iovec struct { 250 Base *byte 251 Len uint64 252 } 253 254 type IPMreq struct { 255 Multiaddr [4]byte /* in_addr */ 256 Interface [4]byte /* in_addr */ 257 } 258 259 type IPMreqn struct { 260 Multiaddr [4]byte /* in_addr */ 261 Address [4]byte /* in_addr */ 262 Ifindex int32 263 } 264 265 type IPv6Mreq struct { 266 Multiaddr [16]byte /* in6_addr */ 267 Interface uint32 268 } 269 270 type Msghdr struct { 271 Name *byte 272 Namelen uint32 273 Pad_cgo_0 [4]byte 274 Iov *Iovec 275 Iovlen uint64 276 Control *byte 277 Controllen uint64 278 Flags int32 279 Pad_cgo_1 [4]byte 280 } 281 282 type Cmsghdr struct { 283 Len uint64 284 Level int32 285 Type int32 286 X__cmsg_data [0]uint8 287 } 288 289 type Inet4Pktinfo struct { 290 Ifindex int32 291 Spec_dst [4]byte /* in_addr */ 292 Addr [4]byte /* in_addr */ 293 } 294 295 type Inet6Pktinfo struct { 296 Addr [16]byte /* in6_addr */ 297 Ifindex uint32 298 } 299 300 type IPv6MTUInfo struct { 301 Addr RawSockaddrInet6 302 Mtu uint32 303 } 304 305 type ICMPv6Filter struct { 306 Data [8]uint32 307 } 308 309 type Ucred struct { 310 Pid int32 311 Uid uint32 312 Gid uint32 313 } 314 315 type TCPInfo struct { 316 State uint8 317 Ca_state uint8 318 Retransmits uint8 319 Probes uint8 320 Backoff uint8 321 Options uint8 322 Pad_cgo_0 [2]byte 323 Rto uint32 324 Ato uint32 325 Snd_mss uint32 326 Rcv_mss uint32 327 Unacked uint32 328 Sacked uint32 329 Lost uint32 330 Retrans uint32 331 Fackets uint32 332 Last_data_sent uint32 333 Last_ack_sent uint32 334 Last_data_recv uint32 335 Last_ack_recv uint32 336 Pmtu uint32 337 Rcv_ssthresh uint32 338 Rtt uint32 339 Rttvar uint32 340 Snd_ssthresh uint32 341 Snd_cwnd uint32 342 Advmss uint32 343 Reordering uint32 344 Rcv_rtt uint32 345 Rcv_space uint32 346 Total_retrans uint32 347 } 348 349 const ( 350 SizeofSockaddrInet4 = 0x10 351 SizeofSockaddrInet6 = 0x1c 352 SizeofSockaddrAny = 0x70 353 SizeofSockaddrUnix = 0x6e 354 SizeofSockaddrLinklayer = 0x14 355 SizeofSockaddrNetlink = 0xc 356 SizeofSockaddrHCI = 0x6 357 SizeofSockaddrCAN = 0x10 358 SizeofSockaddrALG = 0x58 359 SizeofSockaddrVM = 0x10 360 SizeofLinger = 0x8 361 SizeofIPMreq = 0x8 362 SizeofIPMreqn = 0xc 363 SizeofIPv6Mreq = 0x14 364 SizeofMsghdr = 0x38 365 SizeofCmsghdr = 0x10 366 SizeofInet4Pktinfo = 0xc 367 SizeofInet6Pktinfo = 0x14 368 SizeofIPv6MTUInfo = 0x20 369 SizeofICMPv6Filter = 0x20 370 SizeofUcred = 0xc 371 SizeofTCPInfo = 0x68 372 ) 373 374 const ( 375 IFA_UNSPEC = 0x0 376 IFA_ADDRESS = 0x1 377 IFA_LOCAL = 0x2 378 IFA_LABEL = 0x3 379 IFA_BROADCAST = 0x4 380 IFA_ANYCAST = 0x5 381 IFA_CACHEINFO = 0x6 382 IFA_MULTICAST = 0x7 383 IFLA_UNSPEC = 0x0 384 IFLA_ADDRESS = 0x1 385 IFLA_BROADCAST = 0x2 386 IFLA_IFNAME = 0x3 387 IFLA_MTU = 0x4 388 IFLA_LINK = 0x5 389 IFLA_QDISC = 0x6 390 IFLA_STATS = 0x7 391 IFLA_COST = 0x8 392 IFLA_PRIORITY = 0x9 393 IFLA_MASTER = 0xa 394 IFLA_WIRELESS = 0xb 395 IFLA_PROTINFO = 0xc 396 IFLA_TXQLEN = 0xd 397 IFLA_MAP = 0xe 398 IFLA_WEIGHT = 0xf 399 IFLA_OPERSTATE = 0x10 400 IFLA_LINKMODE = 0x11 401 IFLA_LINKINFO = 0x12 402 IFLA_NET_NS_PID = 0x13 403 IFLA_IFALIAS = 0x14 404 IFLA_MAX = 0x22 405 RT_SCOPE_UNIVERSE = 0x0 406 RT_SCOPE_SITE = 0xc8 407 RT_SCOPE_LINK = 0xfd 408 RT_SCOPE_HOST = 0xfe 409 RT_SCOPE_NOWHERE = 0xff 410 RT_TABLE_UNSPEC = 0x0 411 RT_TABLE_COMPAT = 0xfc 412 RT_TABLE_DEFAULT = 0xfd 413 RT_TABLE_MAIN = 0xfe 414 RT_TABLE_LOCAL = 0xff 415 RT_TABLE_MAX = 0xffffffff 416 RTA_UNSPEC = 0x0 417 RTA_DST = 0x1 418 RTA_SRC = 0x2 419 RTA_IIF = 0x3 420 RTA_OIF = 0x4 421 RTA_GATEWAY = 0x5 422 RTA_PRIORITY = 0x6 423 RTA_PREFSRC = 0x7 424 RTA_METRICS = 0x8 425 RTA_MULTIPATH = 0x9 426 RTA_FLOW = 0xb 427 RTA_CACHEINFO = 0xc 428 RTA_TABLE = 0xf 429 RTN_UNSPEC = 0x0 430 RTN_UNICAST = 0x1 431 RTN_LOCAL = 0x2 432 RTN_BROADCAST = 0x3 433 RTN_ANYCAST = 0x4 434 RTN_MULTICAST = 0x5 435 RTN_BLACKHOLE = 0x6 436 RTN_UNREACHABLE = 0x7 437 RTN_PROHIBIT = 0x8 438 RTN_THROW = 0x9 439 RTN_NAT = 0xa 440 RTN_XRESOLVE = 0xb 441 RTNLGRP_NONE = 0x0 442 RTNLGRP_LINK = 0x1 443 RTNLGRP_NOTIFY = 0x2 444 RTNLGRP_NEIGH = 0x3 445 RTNLGRP_TC = 0x4 446 RTNLGRP_IPV4_IFADDR = 0x5 447 RTNLGRP_IPV4_MROUTE = 0x6 448 RTNLGRP_IPV4_ROUTE = 0x7 449 RTNLGRP_IPV4_RULE = 0x8 450 RTNLGRP_IPV6_IFADDR = 0x9 451 RTNLGRP_IPV6_MROUTE = 0xa 452 RTNLGRP_IPV6_ROUTE = 0xb 453 RTNLGRP_IPV6_IFINFO = 0xc 454 RTNLGRP_IPV6_PREFIX = 0x12 455 RTNLGRP_IPV6_RULE = 0x13 456 RTNLGRP_ND_USEROPT = 0x14 457 SizeofNlMsghdr = 0x10 458 SizeofNlMsgerr = 0x14 459 SizeofRtGenmsg = 0x1 460 SizeofNlAttr = 0x4 461 SizeofRtAttr = 0x4 462 SizeofIfInfomsg = 0x10 463 SizeofIfAddrmsg = 0x8 464 SizeofRtMsg = 0xc 465 SizeofRtNexthop = 0x8 466 ) 467 468 type NlMsghdr struct { 469 Len uint32 470 Type uint16 471 Flags uint16 472 Seq uint32 473 Pid uint32 474 } 475 476 type NlMsgerr struct { 477 Error int32 478 Msg NlMsghdr 479 } 480 481 type RtGenmsg struct { 482 Family uint8 483 } 484 485 type NlAttr struct { 486 Len uint16 487 Type uint16 488 } 489 490 type RtAttr struct { 491 Len uint16 492 Type uint16 493 } 494 495 type IfInfomsg struct { 496 Family uint8 497 X__ifi_pad uint8 498 Type uint16 499 Index int32 500 Flags uint32 501 Change uint32 502 } 503 504 type IfAddrmsg struct { 505 Family uint8 506 Prefixlen uint8 507 Flags uint8 508 Scope uint8 509 Index uint32 510 } 511 512 type RtMsg struct { 513 Family uint8 514 Dst_len uint8 515 Src_len uint8 516 Tos uint8 517 Table uint8 518 Protocol uint8 519 Scope uint8 520 Type uint8 521 Flags uint32 522 } 523 524 type RtNexthop struct { 525 Len uint16 526 Flags uint8 527 Hops uint8 528 Ifindex int32 529 } 530 531 const ( 532 SizeofSockFilter = 0x8 533 SizeofSockFprog = 0x10 534 ) 535 536 type SockFilter struct { 537 Code uint16 538 Jt uint8 539 Jf uint8 540 K uint32 541 } 542 543 type SockFprog struct { 544 Len uint16 545 Pad_cgo_0 [6]byte 546 Filter *SockFilter 547 } 548 549 type InotifyEvent struct { 550 Wd int32 551 Mask uint32 552 Cookie uint32 553 Len uint32 554 Name [0]int8 555 } 556 557 const SizeofInotifyEvent = 0x10 558 559 type PtraceRegs struct { 560 Regs [31]uint64 561 Sp uint64 562 Pc uint64 563 Pstate uint64 564 } 565 566 type FdSet struct { 567 Bits [16]int64 568 } 569 570 type Sysinfo_t struct { 571 Uptime int64 572 Loads [3]uint64 573 Totalram uint64 574 Freeram uint64 575 Sharedram uint64 576 Bufferram uint64 577 Totalswap uint64 578 Freeswap uint64 579 Procs uint16 580 Pad uint16 581 Pad_cgo_0 [4]byte 582 Totalhigh uint64 583 Freehigh uint64 584 Unit uint32 585 X_f [0]int8 586 Pad_cgo_1 [4]byte 587 } 588 589 type Utsname struct { 590 Sysname [65]int8 591 Nodename [65]int8 592 Release [65]int8 593 Version [65]int8 594 Machine [65]int8 595 Domainname [65]int8 596 } 597 598 type Ustat_t struct { 599 Tfree int32 600 Pad_cgo_0 [4]byte 601 Tinode uint64 602 Fname [6]int8 603 Fpack [6]int8 604 Pad_cgo_1 [4]byte 605 } 606 607 type EpollEvent struct { 608 Events uint32 609 PadFd int32 610 Fd int32 611 Pad int32 612 } 613 614 const ( 615 AT_FDCWD = -0x64 616 AT_REMOVEDIR = 0x200 617 AT_SYMLINK_FOLLOW = 0x400 618 AT_SYMLINK_NOFOLLOW = 0x100 619 ) 620 621 type PollFd struct { 622 Fd int32 623 Events int16 624 Revents int16 625 } 626 627 const ( 628 POLLIN = 0x1 629 POLLPRI = 0x2 630 POLLOUT = 0x4 631 POLLRDHUP = 0x2000 632 POLLERR = 0x8 633 POLLHUP = 0x10 634 POLLNVAL = 0x20 635 ) 636 637 type Sigset_t struct { 638 X__val [16]uint64 639 } 640 641 type Termios struct { 642 Iflag uint32 643 Oflag uint32 644 Cflag uint32 645 Lflag uint32 646 Line uint8 647 Cc [19]uint8 648 Ispeed uint32 649 Ospeed uint32 650 }