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