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