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