1// +build arm,linux 2// Created by cgo -godefs - DO NOT EDIT 3// cgo -godefs types_linux.go | go run mkpost.go 4 5package unix 6 7const ( 8 sizeofPtr = 0x4 9 sizeofShort = 0x2 10 sizeofInt = 0x4 11 sizeofLong = 0x4 12 sizeofLongLong = 0x8 13 PathMax = 0x1000 14) 15 16type ( 17 _C_short int16 18 _C_int int32 19 _C_long int32 20 _C_long_long int64 21) 22 23type Timespec struct { 24 Sec int32 25 Nsec int32 26} 27 28type Timeval struct { 29 Sec int32 30 Usec int32 31} 32 33type 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 57type Time_t int32 58 59type Tms struct { 60 Utime int32 61 Stime int32 62 Cutime int32 63 Cstime int32 64} 65 66type Utimbuf struct { 67 Actime int32 68 Modtime int32 69} 70 71type 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 90type Rlimit struct { 91 Cur uint64 92 Max uint64 93} 94 95type _Gid_t uint32 96 97type 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 119type 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 135type 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 144type Fsid struct { 145 X__val [2]int32 146} 147 148type 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 158const ( 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 167type RawSockaddrInet4 struct { 168 Family uint16 169 Port uint16 170 Addr [4]byte /* in_addr */ 171 Zero [8]uint8 172} 173 174type RawSockaddrInet6 struct { 175 Family uint16 176 Port uint16 177 Flowinfo uint32 178 Addr [16]byte /* in6_addr */ 179 Scope_id uint32 180} 181 182type RawSockaddrUnix struct { 183 Family uint16 184 Path [108]int8 185} 186 187type 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 197type RawSockaddrNetlink struct { 198 Family uint16 199 Pad uint16 200 Pid uint32 201 Groups uint32 202} 203 204type RawSockaddrHCI struct { 205 Family uint16 206 Dev uint16 207 Channel uint16 208} 209 210type RawSockaddr struct { 211 Family uint16 212 Data [14]uint8 213} 214 215type RawSockaddrAny struct { 216 Addr RawSockaddr 217 Pad [96]uint8 218} 219 220type _Socklen uint32 221 222type Linger struct { 223 Onoff int32 224 Linger int32 225} 226 227type Iovec struct { 228 Base *byte 229 Len uint32 230} 231 232type IPMreq struct { 233 Multiaddr [4]byte /* in_addr */ 234 Interface [4]byte /* in_addr */ 235} 236 237type IPMreqn struct { 238 Multiaddr [4]byte /* in_addr */ 239 Address [4]byte /* in_addr */ 240 Ifindex int32 241} 242 243type IPv6Mreq struct { 244 Multiaddr [16]byte /* in6_addr */ 245 Interface uint32 246} 247 248type Msghdr struct { 249 Name *byte 250 Namelen uint32 251 Iov *Iovec 252 Iovlen uint32 253 Control *byte 254 Controllen uint32 255 Flags int32 256} 257 258type Cmsghdr struct { 259 Len uint32 260 Level int32 261 Type int32 262 X__cmsg_data [0]uint8 263} 264 265type Inet4Pktinfo struct { 266 Ifindex int32 267 Spec_dst [4]byte /* in_addr */ 268 Addr [4]byte /* in_addr */ 269} 270 271type Inet6Pktinfo struct { 272 Addr [16]byte /* in6_addr */ 273 Ifindex uint32 274} 275 276type IPv6MTUInfo struct { 277 Addr RawSockaddrInet6 278 Mtu uint32 279} 280 281type ICMPv6Filter struct { 282 Data [8]uint32 283} 284 285type Ucred struct { 286 Pid int32 287 Uid uint32 288 Gid uint32 289} 290 291type TCPInfo struct { 292 State uint8 293 Ca_state uint8 294 Retransmits uint8 295 Probes uint8 296 Backoff uint8 297 Options uint8 298 Pad_cgo_0 [2]byte 299 Rto uint32 300 Ato uint32 301 Snd_mss uint32 302 Rcv_mss uint32 303 Unacked uint32 304 Sacked uint32 305 Lost uint32 306 Retrans uint32 307 Fackets uint32 308 Last_data_sent uint32 309 Last_ack_sent uint32 310 Last_data_recv uint32 311 Last_ack_recv uint32 312 Pmtu uint32 313 Rcv_ssthresh uint32 314 Rtt uint32 315 Rttvar uint32 316 Snd_ssthresh uint32 317 Snd_cwnd uint32 318 Advmss uint32 319 Reordering uint32 320 Rcv_rtt uint32 321 Rcv_space uint32 322 Total_retrans uint32 323} 324 325const ( 326 SizeofSockaddrInet4 = 0x10 327 SizeofSockaddrInet6 = 0x1c 328 SizeofSockaddrAny = 0x70 329 SizeofSockaddrUnix = 0x6e 330 SizeofSockaddrLinklayer = 0x14 331 SizeofSockaddrNetlink = 0xc 332 SizeofSockaddrHCI = 0x6 333 SizeofLinger = 0x8 334 SizeofIPMreq = 0x8 335 SizeofIPMreqn = 0xc 336 SizeofIPv6Mreq = 0x14 337 SizeofMsghdr = 0x1c 338 SizeofCmsghdr = 0xc 339 SizeofInet4Pktinfo = 0xc 340 SizeofInet6Pktinfo = 0x14 341 SizeofIPv6MTUInfo = 0x20 342 SizeofICMPv6Filter = 0x20 343 SizeofUcred = 0xc 344 SizeofTCPInfo = 0x68 345) 346 347const ( 348 IFA_UNSPEC = 0x0 349 IFA_ADDRESS = 0x1 350 IFA_LOCAL = 0x2 351 IFA_LABEL = 0x3 352 IFA_BROADCAST = 0x4 353 IFA_ANYCAST = 0x5 354 IFA_CACHEINFO = 0x6 355 IFA_MULTICAST = 0x7 356 IFLA_UNSPEC = 0x0 357 IFLA_ADDRESS = 0x1 358 IFLA_BROADCAST = 0x2 359 IFLA_IFNAME = 0x3 360 IFLA_MTU = 0x4 361 IFLA_LINK = 0x5 362 IFLA_QDISC = 0x6 363 IFLA_STATS = 0x7 364 IFLA_COST = 0x8 365 IFLA_PRIORITY = 0x9 366 IFLA_MASTER = 0xa 367 IFLA_WIRELESS = 0xb 368 IFLA_PROTINFO = 0xc 369 IFLA_TXQLEN = 0xd 370 IFLA_MAP = 0xe 371 IFLA_WEIGHT = 0xf 372 IFLA_OPERSTATE = 0x10 373 IFLA_LINKMODE = 0x11 374 IFLA_LINKINFO = 0x12 375 IFLA_NET_NS_PID = 0x13 376 IFLA_IFALIAS = 0x14 377 IFLA_MAX = 0x1d 378 RT_SCOPE_UNIVERSE = 0x0 379 RT_SCOPE_SITE = 0xc8 380 RT_SCOPE_LINK = 0xfd 381 RT_SCOPE_HOST = 0xfe 382 RT_SCOPE_NOWHERE = 0xff 383 RT_TABLE_UNSPEC = 0x0 384 RT_TABLE_COMPAT = 0xfc 385 RT_TABLE_DEFAULT = 0xfd 386 RT_TABLE_MAIN = 0xfe 387 RT_TABLE_LOCAL = 0xff 388 RT_TABLE_MAX = 0xffffffff 389 RTA_UNSPEC = 0x0 390 RTA_DST = 0x1 391 RTA_SRC = 0x2 392 RTA_IIF = 0x3 393 RTA_OIF = 0x4 394 RTA_GATEWAY = 0x5 395 RTA_PRIORITY = 0x6 396 RTA_PREFSRC = 0x7 397 RTA_METRICS = 0x8 398 RTA_MULTIPATH = 0x9 399 RTA_FLOW = 0xb 400 RTA_CACHEINFO = 0xc 401 RTA_TABLE = 0xf 402 RTN_UNSPEC = 0x0 403 RTN_UNICAST = 0x1 404 RTN_LOCAL = 0x2 405 RTN_BROADCAST = 0x3 406 RTN_ANYCAST = 0x4 407 RTN_MULTICAST = 0x5 408 RTN_BLACKHOLE = 0x6 409 RTN_UNREACHABLE = 0x7 410 RTN_PROHIBIT = 0x8 411 RTN_THROW = 0x9 412 RTN_NAT = 0xa 413 RTN_XRESOLVE = 0xb 414 RTNLGRP_NONE = 0x0 415 RTNLGRP_LINK = 0x1 416 RTNLGRP_NOTIFY = 0x2 417 RTNLGRP_NEIGH = 0x3 418 RTNLGRP_TC = 0x4 419 RTNLGRP_IPV4_IFADDR = 0x5 420 RTNLGRP_IPV4_MROUTE = 0x6 421 RTNLGRP_IPV4_ROUTE = 0x7 422 RTNLGRP_IPV4_RULE = 0x8 423 RTNLGRP_IPV6_IFADDR = 0x9 424 RTNLGRP_IPV6_MROUTE = 0xa 425 RTNLGRP_IPV6_ROUTE = 0xb 426 RTNLGRP_IPV6_IFINFO = 0xc 427 RTNLGRP_IPV6_PREFIX = 0x12 428 RTNLGRP_IPV6_RULE = 0x13 429 RTNLGRP_ND_USEROPT = 0x14 430 SizeofNlMsghdr = 0x10 431 SizeofNlMsgerr = 0x14 432 SizeofRtGenmsg = 0x1 433 SizeofNlAttr = 0x4 434 SizeofRtAttr = 0x4 435 SizeofIfInfomsg = 0x10 436 SizeofIfAddrmsg = 0x8 437 SizeofRtMsg = 0xc 438 SizeofRtNexthop = 0x8 439) 440 441type NlMsghdr struct { 442 Len uint32 443 Type uint16 444 Flags uint16 445 Seq uint32 446 Pid uint32 447} 448 449type NlMsgerr struct { 450 Error int32 451 Msg NlMsghdr 452} 453 454type RtGenmsg struct { 455 Family uint8 456} 457 458type NlAttr struct { 459 Len uint16 460 Type uint16 461} 462 463type RtAttr struct { 464 Len uint16 465 Type uint16 466} 467 468type IfInfomsg struct { 469 Family uint8 470 X__ifi_pad uint8 471 Type uint16 472 Index int32 473 Flags uint32 474 Change uint32 475} 476 477type IfAddrmsg struct { 478 Family uint8 479 Prefixlen uint8 480 Flags uint8 481 Scope uint8 482 Index uint32 483} 484 485type RtMsg struct { 486 Family uint8 487 Dst_len uint8 488 Src_len uint8 489 Tos uint8 490 Table uint8 491 Protocol uint8 492 Scope uint8 493 Type uint8 494 Flags uint32 495} 496 497type RtNexthop struct { 498 Len uint16 499 Flags uint8 500 Hops uint8 501 Ifindex int32 502} 503 504const ( 505 SizeofSockFilter = 0x8 506 SizeofSockFprog = 0x8 507) 508 509type SockFilter struct { 510 Code uint16 511 Jt uint8 512 Jf uint8 513 K uint32 514} 515 516type SockFprog struct { 517 Len uint16 518 Pad_cgo_0 [2]byte 519 Filter *SockFilter 520} 521 522type InotifyEvent struct { 523 Wd int32 524 Mask uint32 525 Cookie uint32 526 Len uint32 527 Name [0]uint8 528} 529 530const SizeofInotifyEvent = 0x10 531 532type PtraceRegs struct { 533 Uregs [18]uint32 534} 535 536type FdSet struct { 537 Bits [32]int32 538} 539 540type Sysinfo_t struct { 541 Uptime int32 542 Loads [3]uint32 543 Totalram uint32 544 Freeram uint32 545 Sharedram uint32 546 Bufferram uint32 547 Totalswap uint32 548 Freeswap uint32 549 Procs uint16 550 Pad uint16 551 Totalhigh uint32 552 Freehigh uint32 553 Unit uint32 554 X_f [8]uint8 555} 556 557type Utsname struct { 558 Sysname [65]uint8 559 Nodename [65]uint8 560 Release [65]uint8 561 Version [65]uint8 562 Machine [65]uint8 563 Domainname [65]uint8 564} 565 566type Ustat_t struct { 567 Tfree int32 568 Tinode uint32 569 Fname [6]uint8 570 Fpack [6]uint8 571} 572 573type EpollEvent struct { 574 Events uint32 575 PadFd int32 576 Fd int32 577 Pad int32 578} 579 580const ( 581 AT_FDCWD = -0x64 582 AT_REMOVEDIR = 0x200 583 AT_SYMLINK_FOLLOW = 0x400 584 AT_SYMLINK_NOFOLLOW = 0x100 585) 586 587type PollFd struct { 588 Fd int32 589 Events int16 590 Revents int16 591} 592 593const ( 594 POLLIN = 0x1 595 POLLPRI = 0x2 596 POLLOUT = 0x4 597 POLLRDHUP = 0x2000 598 POLLERR = 0x8 599 POLLHUP = 0x10 600 POLLNVAL = 0x20 601) 602 603type Sigset_t struct { 604 X__val [16]uint64 605} 606 607type Termios struct { 608 Iflag uint32 609 Oflag uint32 610 Cflag uint32 611 Lflag uint32 612 Line uint8 613 Cc [19]uint8 614 Ispeed uint32 615 Ospeed uint32 616} 617