github.com/mfpierre/corectl@v0.5.6/Godeps/_workspace/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 RawSockaddr struct { 207 Family uint16 208 Data [14]int8 209 } 210 211 type RawSockaddrAny struct { 212 Addr RawSockaddr 213 Pad [96]int8 214 } 215 216 type _Socklen uint32 217 218 type Linger struct { 219 Onoff int32 220 Linger int32 221 } 222 223 type Iovec struct { 224 Base *byte 225 Len uint32 226 } 227 228 type IPMreq struct { 229 Multiaddr [4]byte /* in_addr */ 230 Interface [4]byte /* in_addr */ 231 } 232 233 type IPMreqn struct { 234 Multiaddr [4]byte /* in_addr */ 235 Address [4]byte /* in_addr */ 236 Ifindex int32 237 } 238 239 type IPv6Mreq struct { 240 Multiaddr [16]byte /* in6_addr */ 241 Interface uint32 242 } 243 244 type Msghdr struct { 245 Name *byte 246 Namelen uint32 247 Iov *Iovec 248 Iovlen uint32 249 Control *byte 250 Controllen uint32 251 Flags int32 252 } 253 254 type Cmsghdr struct { 255 Len uint32 256 Level int32 257 Type int32 258 X__cmsg_data [0]uint8 259 } 260 261 type Inet4Pktinfo struct { 262 Ifindex int32 263 Spec_dst [4]byte /* in_addr */ 264 Addr [4]byte /* in_addr */ 265 } 266 267 type Inet6Pktinfo struct { 268 Addr [16]byte /* in6_addr */ 269 Ifindex uint32 270 } 271 272 type IPv6MTUInfo struct { 273 Addr RawSockaddrInet6 274 Mtu uint32 275 } 276 277 type ICMPv6Filter struct { 278 Data [8]uint32 279 } 280 281 type Ucred struct { 282 Pid int32 283 Uid uint32 284 Gid uint32 285 } 286 287 type TCPInfo struct { 288 State uint8 289 Ca_state uint8 290 Retransmits uint8 291 Probes uint8 292 Backoff uint8 293 Options uint8 294 Pad_cgo_0 [2]byte 295 Rto uint32 296 Ato uint32 297 Snd_mss uint32 298 Rcv_mss uint32 299 Unacked uint32 300 Sacked uint32 301 Lost uint32 302 Retrans uint32 303 Fackets uint32 304 Last_data_sent uint32 305 Last_ack_sent uint32 306 Last_data_recv uint32 307 Last_ack_recv uint32 308 Pmtu uint32 309 Rcv_ssthresh uint32 310 Rtt uint32 311 Rttvar uint32 312 Snd_ssthresh uint32 313 Snd_cwnd uint32 314 Advmss uint32 315 Reordering uint32 316 Rcv_rtt uint32 317 Rcv_space uint32 318 Total_retrans uint32 319 } 320 321 const ( 322 SizeofSockaddrInet4 = 0x10 323 SizeofSockaddrInet6 = 0x1c 324 SizeofSockaddrAny = 0x70 325 SizeofSockaddrUnix = 0x6e 326 SizeofSockaddrLinklayer = 0x14 327 SizeofSockaddrNetlink = 0xc 328 SizeofSockaddrHCI = 0x6 329 SizeofLinger = 0x8 330 SizeofIPMreq = 0x8 331 SizeofIPMreqn = 0xc 332 SizeofIPv6Mreq = 0x14 333 SizeofMsghdr = 0x1c 334 SizeofCmsghdr = 0xc 335 SizeofInet4Pktinfo = 0xc 336 SizeofInet6Pktinfo = 0x14 337 SizeofIPv6MTUInfo = 0x20 338 SizeofICMPv6Filter = 0x20 339 SizeofUcred = 0xc 340 SizeofTCPInfo = 0x68 341 ) 342 343 const ( 344 IFA_UNSPEC = 0x0 345 IFA_ADDRESS = 0x1 346 IFA_LOCAL = 0x2 347 IFA_LABEL = 0x3 348 IFA_BROADCAST = 0x4 349 IFA_ANYCAST = 0x5 350 IFA_CACHEINFO = 0x6 351 IFA_MULTICAST = 0x7 352 IFLA_UNSPEC = 0x0 353 IFLA_ADDRESS = 0x1 354 IFLA_BROADCAST = 0x2 355 IFLA_IFNAME = 0x3 356 IFLA_MTU = 0x4 357 IFLA_LINK = 0x5 358 IFLA_QDISC = 0x6 359 IFLA_STATS = 0x7 360 IFLA_COST = 0x8 361 IFLA_PRIORITY = 0x9 362 IFLA_MASTER = 0xa 363 IFLA_WIRELESS = 0xb 364 IFLA_PROTINFO = 0xc 365 IFLA_TXQLEN = 0xd 366 IFLA_MAP = 0xe 367 IFLA_WEIGHT = 0xf 368 IFLA_OPERSTATE = 0x10 369 IFLA_LINKMODE = 0x11 370 IFLA_LINKINFO = 0x12 371 IFLA_NET_NS_PID = 0x13 372 IFLA_IFALIAS = 0x14 373 IFLA_MAX = 0x1d 374 RT_SCOPE_UNIVERSE = 0x0 375 RT_SCOPE_SITE = 0xc8 376 RT_SCOPE_LINK = 0xfd 377 RT_SCOPE_HOST = 0xfe 378 RT_SCOPE_NOWHERE = 0xff 379 RT_TABLE_UNSPEC = 0x0 380 RT_TABLE_COMPAT = 0xfc 381 RT_TABLE_DEFAULT = 0xfd 382 RT_TABLE_MAIN = 0xfe 383 RT_TABLE_LOCAL = 0xff 384 RT_TABLE_MAX = 0xffffffff 385 RTA_UNSPEC = 0x0 386 RTA_DST = 0x1 387 RTA_SRC = 0x2 388 RTA_IIF = 0x3 389 RTA_OIF = 0x4 390 RTA_GATEWAY = 0x5 391 RTA_PRIORITY = 0x6 392 RTA_PREFSRC = 0x7 393 RTA_METRICS = 0x8 394 RTA_MULTIPATH = 0x9 395 RTA_FLOW = 0xb 396 RTA_CACHEINFO = 0xc 397 RTA_TABLE = 0xf 398 RTN_UNSPEC = 0x0 399 RTN_UNICAST = 0x1 400 RTN_LOCAL = 0x2 401 RTN_BROADCAST = 0x3 402 RTN_ANYCAST = 0x4 403 RTN_MULTICAST = 0x5 404 RTN_BLACKHOLE = 0x6 405 RTN_UNREACHABLE = 0x7 406 RTN_PROHIBIT = 0x8 407 RTN_THROW = 0x9 408 RTN_NAT = 0xa 409 RTN_XRESOLVE = 0xb 410 RTNLGRP_NONE = 0x0 411 RTNLGRP_LINK = 0x1 412 RTNLGRP_NOTIFY = 0x2 413 RTNLGRP_NEIGH = 0x3 414 RTNLGRP_TC = 0x4 415 RTNLGRP_IPV4_IFADDR = 0x5 416 RTNLGRP_IPV4_MROUTE = 0x6 417 RTNLGRP_IPV4_ROUTE = 0x7 418 RTNLGRP_IPV4_RULE = 0x8 419 RTNLGRP_IPV6_IFADDR = 0x9 420 RTNLGRP_IPV6_MROUTE = 0xa 421 RTNLGRP_IPV6_ROUTE = 0xb 422 RTNLGRP_IPV6_IFINFO = 0xc 423 RTNLGRP_IPV6_PREFIX = 0x12 424 RTNLGRP_IPV6_RULE = 0x13 425 RTNLGRP_ND_USEROPT = 0x14 426 SizeofNlMsghdr = 0x10 427 SizeofNlMsgerr = 0x14 428 SizeofRtGenmsg = 0x1 429 SizeofNlAttr = 0x4 430 SizeofRtAttr = 0x4 431 SizeofIfInfomsg = 0x10 432 SizeofIfAddrmsg = 0x8 433 SizeofRtMsg = 0xc 434 SizeofRtNexthop = 0x8 435 ) 436 437 type NlMsghdr struct { 438 Len uint32 439 Type uint16 440 Flags uint16 441 Seq uint32 442 Pid uint32 443 } 444 445 type NlMsgerr struct { 446 Error int32 447 Msg NlMsghdr 448 } 449 450 type RtGenmsg struct { 451 Family uint8 452 } 453 454 type NlAttr struct { 455 Len uint16 456 Type uint16 457 } 458 459 type RtAttr struct { 460 Len uint16 461 Type uint16 462 } 463 464 type IfInfomsg struct { 465 Family uint8 466 X__ifi_pad uint8 467 Type uint16 468 Index int32 469 Flags uint32 470 Change uint32 471 } 472 473 type IfAddrmsg struct { 474 Family uint8 475 Prefixlen uint8 476 Flags uint8 477 Scope uint8 478 Index uint32 479 } 480 481 type RtMsg struct { 482 Family uint8 483 Dst_len uint8 484 Src_len uint8 485 Tos uint8 486 Table uint8 487 Protocol uint8 488 Scope uint8 489 Type uint8 490 Flags uint32 491 } 492 493 type RtNexthop struct { 494 Len uint16 495 Flags uint8 496 Hops uint8 497 Ifindex int32 498 } 499 500 const ( 501 SizeofSockFilter = 0x8 502 SizeofSockFprog = 0x8 503 ) 504 505 type SockFilter struct { 506 Code uint16 507 Jt uint8 508 Jf uint8 509 K uint32 510 } 511 512 type SockFprog struct { 513 Len uint16 514 Pad_cgo_0 [2]byte 515 Filter *SockFilter 516 } 517 518 type InotifyEvent struct { 519 Wd int32 520 Mask uint32 521 Cookie uint32 522 Len uint32 523 Name [0]int8 524 } 525 526 const SizeofInotifyEvent = 0x10 527 528 type PtraceRegs struct { 529 Ebx int32 530 Ecx int32 531 Edx int32 532 Esi int32 533 Edi int32 534 Ebp int32 535 Eax int32 536 Xds int32 537 Xes int32 538 Xfs int32 539 Xgs int32 540 Orig_eax int32 541 Eip int32 542 Xcs int32 543 Eflags int32 544 Esp int32 545 Xss int32 546 } 547 548 type FdSet struct { 549 Bits [32]int32 550 } 551 552 type Sysinfo_t struct { 553 Uptime int32 554 Loads [3]uint32 555 Totalram uint32 556 Freeram uint32 557 Sharedram uint32 558 Bufferram uint32 559 Totalswap uint32 560 Freeswap uint32 561 Procs uint16 562 Pad uint16 563 Totalhigh uint32 564 Freehigh uint32 565 Unit uint32 566 X_f [8]int8 567 } 568 569 type Utsname struct { 570 Sysname [65]int8 571 Nodename [65]int8 572 Release [65]int8 573 Version [65]int8 574 Machine [65]int8 575 Domainname [65]int8 576 } 577 578 type Ustat_t struct { 579 Tfree int32 580 Tinode uint32 581 Fname [6]int8 582 Fpack [6]int8 583 } 584 585 type EpollEvent struct { 586 Events uint32 587 Fd int32 588 Pad int32 589 } 590 591 const ( 592 AT_FDCWD = -0x64 593 AT_REMOVEDIR = 0x200 594 AT_SYMLINK_FOLLOW = 0x400 595 AT_SYMLINK_NOFOLLOW = 0x100 596 ) 597 598 type Termios struct { 599 Iflag uint32 600 Oflag uint32 601 Cflag uint32 602 Lflag uint32 603 Line uint8 604 Cc [19]uint8 605 Ispeed uint32 606 Ospeed uint32 607 }