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