github.com/juelite/golang.org-x-sys@v0.0.0-20181121071242-7b69e1c5db33/unix/ztypes_linux_mips64.go (about) 1 // +build mips64,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 RawSockaddr struct { 217 Family uint16 218 Data [14]int8 219 } 220 221 type RawSockaddrAny struct { 222 Addr RawSockaddr 223 Pad [96]int8 224 } 225 226 type _Socklen uint32 227 228 type Linger struct { 229 Onoff int32 230 Linger int32 231 } 232 233 type Iovec struct { 234 Base *byte 235 Len uint64 236 } 237 238 type IPMreq struct { 239 Multiaddr [4]byte /* in_addr */ 240 Interface [4]byte /* in_addr */ 241 } 242 243 type IPMreqn struct { 244 Multiaddr [4]byte /* in_addr */ 245 Address [4]byte /* in_addr */ 246 Ifindex int32 247 } 248 249 type IPv6Mreq struct { 250 Multiaddr [16]byte /* in6_addr */ 251 Interface uint32 252 } 253 254 type Msghdr struct { 255 Name *byte 256 Namelen uint32 257 Pad_cgo_0 [4]byte 258 Iov *Iovec 259 Iovlen uint64 260 Control *byte 261 Controllen uint64 262 Flags int32 263 Pad_cgo_1 [4]byte 264 } 265 266 type Cmsghdr struct { 267 Len uint64 268 Level int32 269 Type int32 270 } 271 272 type Inet4Pktinfo struct { 273 Ifindex int32 274 Spec_dst [4]byte /* in_addr */ 275 Addr [4]byte /* in_addr */ 276 } 277 278 type Inet6Pktinfo struct { 279 Addr [16]byte /* in6_addr */ 280 Ifindex uint32 281 } 282 283 type IPv6MTUInfo struct { 284 Addr RawSockaddrInet6 285 Mtu uint32 286 } 287 288 type ICMPv6Filter struct { 289 Data [8]uint32 290 } 291 292 type Ucred struct { 293 Pid int32 294 Uid uint32 295 Gid uint32 296 } 297 298 type TCPInfo struct { 299 State uint8 300 Ca_state uint8 301 Retransmits uint8 302 Probes uint8 303 Backoff uint8 304 Options uint8 305 Pad_cgo_0 [2]byte 306 Rto uint32 307 Ato uint32 308 Snd_mss uint32 309 Rcv_mss uint32 310 Unacked uint32 311 Sacked uint32 312 Lost uint32 313 Retrans uint32 314 Fackets uint32 315 Last_data_sent uint32 316 Last_ack_sent uint32 317 Last_data_recv uint32 318 Last_ack_recv uint32 319 Pmtu uint32 320 Rcv_ssthresh uint32 321 Rtt uint32 322 Rttvar uint32 323 Snd_ssthresh uint32 324 Snd_cwnd uint32 325 Advmss uint32 326 Reordering uint32 327 Rcv_rtt uint32 328 Rcv_space uint32 329 Total_retrans uint32 330 } 331 332 const ( 333 SizeofSockaddrInet4 = 0x10 334 SizeofSockaddrInet6 = 0x1c 335 SizeofSockaddrAny = 0x70 336 SizeofSockaddrUnix = 0x6e 337 SizeofSockaddrLinklayer = 0x14 338 SizeofSockaddrNetlink = 0xc 339 SizeofSockaddrHCI = 0x6 340 SizeofSockaddrCAN = 0x10 341 SizeofLinger = 0x8 342 SizeofIPMreq = 0x8 343 SizeofIPMreqn = 0xc 344 SizeofIPv6Mreq = 0x14 345 SizeofMsghdr = 0x38 346 SizeofCmsghdr = 0x10 347 SizeofInet4Pktinfo = 0xc 348 SizeofInet6Pktinfo = 0x14 349 SizeofIPv6MTUInfo = 0x20 350 SizeofICMPv6Filter = 0x20 351 SizeofUcred = 0xc 352 SizeofTCPInfo = 0x68 353 ) 354 355 const ( 356 IFA_UNSPEC = 0x0 357 IFA_ADDRESS = 0x1 358 IFA_LOCAL = 0x2 359 IFA_LABEL = 0x3 360 IFA_BROADCAST = 0x4 361 IFA_ANYCAST = 0x5 362 IFA_CACHEINFO = 0x6 363 IFA_MULTICAST = 0x7 364 IFLA_UNSPEC = 0x0 365 IFLA_ADDRESS = 0x1 366 IFLA_BROADCAST = 0x2 367 IFLA_IFNAME = 0x3 368 IFLA_MTU = 0x4 369 IFLA_LINK = 0x5 370 IFLA_QDISC = 0x6 371 IFLA_STATS = 0x7 372 IFLA_COST = 0x8 373 IFLA_PRIORITY = 0x9 374 IFLA_MASTER = 0xa 375 IFLA_WIRELESS = 0xb 376 IFLA_PROTINFO = 0xc 377 IFLA_TXQLEN = 0xd 378 IFLA_MAP = 0xe 379 IFLA_WEIGHT = 0xf 380 IFLA_OPERSTATE = 0x10 381 IFLA_LINKMODE = 0x11 382 IFLA_LINKINFO = 0x12 383 IFLA_NET_NS_PID = 0x13 384 IFLA_IFALIAS = 0x14 385 IFLA_MAX = 0x27 386 RT_SCOPE_UNIVERSE = 0x0 387 RT_SCOPE_SITE = 0xc8 388 RT_SCOPE_LINK = 0xfd 389 RT_SCOPE_HOST = 0xfe 390 RT_SCOPE_NOWHERE = 0xff 391 RT_TABLE_UNSPEC = 0x0 392 RT_TABLE_COMPAT = 0xfc 393 RT_TABLE_DEFAULT = 0xfd 394 RT_TABLE_MAIN = 0xfe 395 RT_TABLE_LOCAL = 0xff 396 RT_TABLE_MAX = 0xffffffff 397 RTA_UNSPEC = 0x0 398 RTA_DST = 0x1 399 RTA_SRC = 0x2 400 RTA_IIF = 0x3 401 RTA_OIF = 0x4 402 RTA_GATEWAY = 0x5 403 RTA_PRIORITY = 0x6 404 RTA_PREFSRC = 0x7 405 RTA_METRICS = 0x8 406 RTA_MULTIPATH = 0x9 407 RTA_FLOW = 0xb 408 RTA_CACHEINFO = 0xc 409 RTA_TABLE = 0xf 410 RTN_UNSPEC = 0x0 411 RTN_UNICAST = 0x1 412 RTN_LOCAL = 0x2 413 RTN_BROADCAST = 0x3 414 RTN_ANYCAST = 0x4 415 RTN_MULTICAST = 0x5 416 RTN_BLACKHOLE = 0x6 417 RTN_UNREACHABLE = 0x7 418 RTN_PROHIBIT = 0x8 419 RTN_THROW = 0x9 420 RTN_NAT = 0xa 421 RTN_XRESOLVE = 0xb 422 RTNLGRP_NONE = 0x0 423 RTNLGRP_LINK = 0x1 424 RTNLGRP_NOTIFY = 0x2 425 RTNLGRP_NEIGH = 0x3 426 RTNLGRP_TC = 0x4 427 RTNLGRP_IPV4_IFADDR = 0x5 428 RTNLGRP_IPV4_MROUTE = 0x6 429 RTNLGRP_IPV4_ROUTE = 0x7 430 RTNLGRP_IPV4_RULE = 0x8 431 RTNLGRP_IPV6_IFADDR = 0x9 432 RTNLGRP_IPV6_MROUTE = 0xa 433 RTNLGRP_IPV6_ROUTE = 0xb 434 RTNLGRP_IPV6_IFINFO = 0xc 435 RTNLGRP_IPV6_PREFIX = 0x12 436 RTNLGRP_IPV6_RULE = 0x13 437 RTNLGRP_ND_USEROPT = 0x14 438 SizeofNlMsghdr = 0x10 439 SizeofNlMsgerr = 0x14 440 SizeofRtGenmsg = 0x1 441 SizeofNlAttr = 0x4 442 SizeofRtAttr = 0x4 443 SizeofIfInfomsg = 0x10 444 SizeofIfAddrmsg = 0x8 445 SizeofRtMsg = 0xc 446 SizeofRtNexthop = 0x8 447 ) 448 449 type NlMsghdr struct { 450 Len uint32 451 Type uint16 452 Flags uint16 453 Seq uint32 454 Pid uint32 455 } 456 457 type NlMsgerr struct { 458 Error int32 459 Msg NlMsghdr 460 } 461 462 type RtGenmsg struct { 463 Family uint8 464 } 465 466 type NlAttr struct { 467 Len uint16 468 Type uint16 469 } 470 471 type RtAttr struct { 472 Len uint16 473 Type uint16 474 } 475 476 type IfInfomsg struct { 477 Family uint8 478 X__ifi_pad uint8 479 Type uint16 480 Index int32 481 Flags uint32 482 Change uint32 483 } 484 485 type IfAddrmsg struct { 486 Family uint8 487 Prefixlen uint8 488 Flags uint8 489 Scope uint8 490 Index uint32 491 } 492 493 type RtMsg struct { 494 Family uint8 495 Dst_len uint8 496 Src_len uint8 497 Tos uint8 498 Table uint8 499 Protocol uint8 500 Scope uint8 501 Type uint8 502 Flags uint32 503 } 504 505 type RtNexthop struct { 506 Len uint16 507 Flags uint8 508 Hops uint8 509 Ifindex int32 510 } 511 512 const ( 513 SizeofSockFilter = 0x8 514 SizeofSockFprog = 0x10 515 ) 516 517 type SockFilter struct { 518 Code uint16 519 Jt uint8 520 Jf uint8 521 K uint32 522 } 523 524 type SockFprog struct { 525 Len uint16 526 Pad_cgo_0 [6]byte 527 Filter *SockFilter 528 } 529 530 type InotifyEvent struct { 531 Wd int32 532 Mask uint32 533 Cookie uint32 534 Len uint32 535 } 536 537 const SizeofInotifyEvent = 0x10 538 539 type PtraceRegs struct { 540 Regs [102]uint64 541 U_tsize uint64 542 U_dsize uint64 543 U_ssize uint64 544 Start_code uint64 545 Start_data uint64 546 Start_stack uint64 547 Signal int64 548 U_ar0 uint64 549 Magic uint64 550 U_comm [32]int8 551 } 552 553 type FdSet struct { 554 Bits [16]int64 555 } 556 557 type Sysinfo_t struct { 558 Uptime int64 559 Loads [3]uint64 560 Totalram uint64 561 Freeram uint64 562 Sharedram uint64 563 Bufferram uint64 564 Totalswap uint64 565 Freeswap uint64 566 Procs uint16 567 Pad uint16 568 Pad_cgo_0 [4]byte 569 Totalhigh uint64 570 Freehigh uint64 571 Unit uint32 572 X_f [0]int8 573 Pad_cgo_1 [4]byte 574 } 575 576 type Utsname struct { 577 Sysname [65]int8 578 Nodename [65]int8 579 Release [65]int8 580 Version [65]int8 581 Machine [65]int8 582 Domainname [65]int8 583 } 584 585 type Ustat_t struct { 586 Tfree int32 587 Pad_cgo_0 [4]byte 588 Tinode uint64 589 Fname [6]int8 590 Fpack [6]int8 591 Pad_cgo_1 [4]byte 592 } 593 594 type EpollEvent struct { 595 Events uint32 596 Fd int32 597 Pad int32 598 } 599 600 const ( 601 AT_FDCWD = -0x64 602 AT_REMOVEDIR = 0x200 603 AT_SYMLINK_FOLLOW = 0x400 604 AT_SYMLINK_NOFOLLOW = 0x100 605 ) 606 607 type PollFd struct { 608 Fd int32 609 Events int16 610 Revents int16 611 } 612 613 const ( 614 POLLIN = 0x1 615 POLLPRI = 0x2 616 POLLOUT = 0x4 617 POLLRDHUP = 0x2000 618 POLLERR = 0x8 619 POLLHUP = 0x10 620 POLLNVAL = 0x20 621 ) 622 623 type Sigset_t struct { 624 X__val [16]uint64 625 } 626 627 type Termios struct { 628 Iflag uint32 629 Oflag uint32 630 Cflag uint32 631 Lflag uint32 632 Line uint8 633 Cc [32]uint8 634 Pad_cgo_0 [3]byte 635 }