github.com/jgarto/itcv@v0.0.0-20180826224514-4eea09c1aa0d/_vendor/src/golang.org/x/sys/unix/ztypes_linux_mips64le.go (about) 1 // +build mips64le,linux 2 // Created by cgo -godefs - DO NOT EDIT 3 // cgo -godefs types_linux.go 4 5 package unix 6 7 const ( 8 sizeofPtr = 0x8 9 sizeofShort = 0x2 10 sizeofInt = 0x4 11 sizeofLong = 0x8 12 sizeofLongLong = 0x8 13 PathMax = 0x1000 14 ) 15 16 type ( 17 _C_short int16 18 _C_int int32 19 _C_long int64 20 _C_long_long int64 21 ) 22 23 type Timespec struct { 24 Sec int64 25 Nsec int64 26 } 27 28 type Timeval struct { 29 Sec int64 30 Usec int64 31 } 32 33 type Timex struct { 34 Modes uint32 35 Pad_cgo_0 [4]byte 36 Offset int64 37 Freq int64 38 Maxerror int64 39 Esterror int64 40 Status int32 41 Pad_cgo_1 [4]byte 42 Constant int64 43 Precision int64 44 Tolerance int64 45 Time Timeval 46 Tick int64 47 Ppsfreq int64 48 Jitter int64 49 Shift int32 50 Pad_cgo_2 [4]byte 51 Stabil int64 52 Jitcnt int64 53 Calcnt int64 54 Errcnt int64 55 Stbcnt int64 56 Tai int32 57 Pad_cgo_3 [44]byte 58 } 59 60 type Time_t int64 61 62 type Tms struct { 63 Utime int64 64 Stime int64 65 Cutime int64 66 Cstime int64 67 } 68 69 type Utimbuf struct { 70 Actime int64 71 Modtime int64 72 } 73 74 type Rusage struct { 75 Utime Timeval 76 Stime Timeval 77 Maxrss int64 78 Ixrss int64 79 Idrss int64 80 Isrss int64 81 Minflt int64 82 Majflt int64 83 Nswap int64 84 Inblock int64 85 Oublock int64 86 Msgsnd int64 87 Msgrcv int64 88 Nsignals int64 89 Nvcsw int64 90 Nivcsw int64 91 } 92 93 type Rlimit struct { 94 Cur uint64 95 Max uint64 96 } 97 98 type _Gid_t uint32 99 100 type Stat_t struct { 101 Dev uint32 102 Pad1 [3]int32 103 Ino uint64 104 Mode uint32 105 Nlink uint32 106 Uid uint32 107 Gid uint32 108 Rdev uint32 109 Pad2 [3]uint32 110 Size int64 111 Atim Timespec 112 Mtim Timespec 113 Ctim Timespec 114 Blksize uint32 115 Pad4 uint32 116 Blocks int64 117 } 118 119 type Statfs_t struct { 120 Type int64 121 Bsize int64 122 Frsize int64 123 Blocks uint64 124 Bfree uint64 125 Files uint64 126 Ffree uint64 127 Bavail uint64 128 Fsid Fsid 129 Namelen int64 130 Flags int64 131 Spare [5]int64 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 uint64 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 Pad_cgo_0 [4]byte 274 Iov *Iovec 275 Iovlen uint64 276 Control *byte 277 Controllen uint64 278 Flags int32 279 Pad_cgo_1 [4]byte 280 } 281 282 type Cmsghdr struct { 283 Len uint64 284 Level int32 285 Type int32 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 = 0x38 364 SizeofCmsghdr = 0x10 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 = 0x27 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 = 0x10 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 [6]byte 545 Filter *SockFilter 546 } 547 548 type InotifyEvent struct { 549 Wd int32 550 Mask uint32 551 Cookie uint32 552 Len uint32 553 } 554 555 const SizeofInotifyEvent = 0x10 556 557 type PtraceRegs struct { 558 Regs [102]uint64 559 U_tsize uint64 560 U_dsize uint64 561 U_ssize uint64 562 Start_code uint64 563 Start_data uint64 564 Start_stack uint64 565 Signal int64 566 U_ar0 uint64 567 Magic uint64 568 U_comm [32]int8 569 } 570 571 type FdSet struct { 572 Bits [16]int64 573 } 574 575 type Sysinfo_t struct { 576 Uptime int64 577 Loads [3]uint64 578 Totalram uint64 579 Freeram uint64 580 Sharedram uint64 581 Bufferram uint64 582 Totalswap uint64 583 Freeswap uint64 584 Procs uint16 585 Pad uint16 586 Pad_cgo_0 [4]byte 587 Totalhigh uint64 588 Freehigh uint64 589 Unit uint32 590 X_f [0]int8 591 Pad_cgo_1 [4]byte 592 } 593 594 type Utsname struct { 595 Sysname [65]int8 596 Nodename [65]int8 597 Release [65]int8 598 Version [65]int8 599 Machine [65]int8 600 Domainname [65]int8 601 } 602 603 type Ustat_t struct { 604 Tfree int32 605 Pad_cgo_0 [4]byte 606 Tinode uint64 607 Fname [6]int8 608 Fpack [6]int8 609 Pad_cgo_1 [4]byte 610 } 611 612 type EpollEvent struct { 613 Events uint32 614 Fd int32 615 Pad int32 616 } 617 618 const ( 619 AT_FDCWD = -0x64 620 AT_REMOVEDIR = 0x200 621 AT_SYMLINK_FOLLOW = 0x400 622 AT_SYMLINK_NOFOLLOW = 0x100 623 ) 624 625 type PollFd struct { 626 Fd int32 627 Events int16 628 Revents int16 629 } 630 631 const ( 632 POLLIN = 0x1 633 POLLPRI = 0x2 634 POLLOUT = 0x4 635 POLLRDHUP = 0x2000 636 POLLERR = 0x8 637 POLLHUP = 0x10 638 POLLNVAL = 0x20 639 ) 640 641 type Sigset_t struct { 642 X__val [16]uint64 643 } 644 645 type Termios struct { 646 Iflag uint32 647 Oflag uint32 648 Cflag uint32 649 Lflag uint32 650 Line uint8 651 Cc [32]uint8 652 Pad_cgo_0 [3]byte 653 }