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