github.com/jgarto/itcv@v0.0.0-20180826224514-4eea09c1aa0d/_vendor/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 | go run mkpost.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 const ( 159 FADV_NORMAL = 0x0 160 FADV_RANDOM = 0x1 161 FADV_SEQUENTIAL = 0x2 162 FADV_WILLNEED = 0x3 163 FADV_DONTNEED = 0x4 164 FADV_NOREUSE = 0x5 165 ) 166 167 type RawSockaddrInet4 struct { 168 Family uint16 169 Port uint16 170 Addr [4]byte /* in_addr */ 171 Zero [8]uint8 172 } 173 174 type RawSockaddrInet6 struct { 175 Family uint16 176 Port uint16 177 Flowinfo uint32 178 Addr [16]byte /* in6_addr */ 179 Scope_id uint32 180 } 181 182 type RawSockaddrUnix struct { 183 Family uint16 184 Path [108]int8 185 } 186 187 type RawSockaddrLinklayer struct { 188 Family uint16 189 Protocol uint16 190 Ifindex int32 191 Hatype uint16 192 Pkttype uint8 193 Halen uint8 194 Addr [8]uint8 195 } 196 197 type RawSockaddrNetlink struct { 198 Family uint16 199 Pad uint16 200 Pid uint32 201 Groups uint32 202 } 203 204 type RawSockaddrHCI struct { 205 Family uint16 206 Dev uint16 207 Channel uint16 208 } 209 210 type RawSockaddrCAN struct { 211 Family uint16 212 Pad_cgo_0 [2]byte 213 Ifindex int32 214 Addr [8]byte 215 } 216 217 type RawSockaddrALG struct { 218 Family uint16 219 Type [14]uint8 220 Feat uint32 221 Mask uint32 222 Name [64]uint8 223 } 224 225 type RawSockaddrVM struct { 226 Family uint16 227 Reserved1 uint16 228 Port uint32 229 Cid uint32 230 Zero [4]uint8 231 } 232 233 type RawSockaddr struct { 234 Family uint16 235 Data [14]uint8 236 } 237 238 type RawSockaddrAny struct { 239 Addr RawSockaddr 240 Pad [96]uint8 241 } 242 243 type _Socklen uint32 244 245 type Linger struct { 246 Onoff int32 247 Linger int32 248 } 249 250 type Iovec struct { 251 Base *byte 252 Len uint32 253 } 254 255 type IPMreq struct { 256 Multiaddr [4]byte /* in_addr */ 257 Interface [4]byte /* in_addr */ 258 } 259 260 type IPMreqn struct { 261 Multiaddr [4]byte /* in_addr */ 262 Address [4]byte /* in_addr */ 263 Ifindex int32 264 } 265 266 type IPv6Mreq struct { 267 Multiaddr [16]byte /* in6_addr */ 268 Interface uint32 269 } 270 271 type Msghdr struct { 272 Name *byte 273 Namelen uint32 274 Iov *Iovec 275 Iovlen uint32 276 Control *byte 277 Controllen uint32 278 Flags int32 279 } 280 281 type Cmsghdr struct { 282 Len uint32 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 = 0x1c 364 SizeofCmsghdr = 0xc 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 = 0x8 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 [2]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]uint8 554 } 555 556 const SizeofInotifyEvent = 0x10 557 558 type PtraceRegs struct { 559 Uregs [18]uint32 560 } 561 562 type FdSet struct { 563 Bits [32]int32 564 } 565 566 type Sysinfo_t struct { 567 Uptime int32 568 Loads [3]uint32 569 Totalram uint32 570 Freeram uint32 571 Sharedram uint32 572 Bufferram uint32 573 Totalswap uint32 574 Freeswap uint32 575 Procs uint16 576 Pad uint16 577 Totalhigh uint32 578 Freehigh uint32 579 Unit uint32 580 X_f [8]uint8 581 } 582 583 type Utsname struct { 584 Sysname [65]uint8 585 Nodename [65]uint8 586 Release [65]uint8 587 Version [65]uint8 588 Machine [65]uint8 589 Domainname [65]uint8 590 } 591 592 type Ustat_t struct { 593 Tfree int32 594 Tinode uint32 595 Fname [6]uint8 596 Fpack [6]uint8 597 } 598 599 type EpollEvent struct { 600 Events uint32 601 PadFd int32 602 Fd int32 603 Pad int32 604 } 605 606 const ( 607 AT_FDCWD = -0x64 608 AT_REMOVEDIR = 0x200 609 AT_SYMLINK_FOLLOW = 0x400 610 AT_SYMLINK_NOFOLLOW = 0x100 611 ) 612 613 type PollFd struct { 614 Fd int32 615 Events int16 616 Revents int16 617 } 618 619 const ( 620 POLLIN = 0x1 621 POLLPRI = 0x2 622 POLLOUT = 0x4 623 POLLRDHUP = 0x2000 624 POLLERR = 0x8 625 POLLHUP = 0x10 626 POLLNVAL = 0x20 627 ) 628 629 type Sigset_t struct { 630 X__val [16]uint64 631 } 632 633 type Termios struct { 634 Iflag uint32 635 Oflag uint32 636 Cflag uint32 637 Lflag uint32 638 Line uint8 639 Cc [19]uint8 640 Ispeed uint32 641 Ospeed uint32 642 }