github.com/m10x/go/src@v0.0.0-20220112094212-ba61592315da/syscall/ztypes_linux_mips.go (about) 1 // Created by cgo -godefs - DO NOT EDIT 2 // cgo -godefs types_linux.go 3 4 package syscall 5 6 const ( 7 sizeofPtr = 0x4 8 sizeofShort = 0x2 9 sizeofInt = 0x4 10 sizeofLong = 0x4 11 sizeofLongLong = 0x8 12 PathMax = 0x1000 13 ) 14 15 type ( 16 _C_short int16 17 _C_int int32 18 _C_long int32 19 _C_long_long int64 20 ) 21 22 type Timespec struct { 23 Sec int32 24 Nsec int32 25 } 26 27 type Timeval struct { 28 Sec int32 29 Usec int32 30 } 31 32 type Timex struct { 33 Modes uint32 34 Offset int32 35 Freq int32 36 Maxerror int32 37 Esterror int32 38 Status int32 39 Constant int32 40 Precision int32 41 Tolerance int32 42 Time Timeval 43 Tick int32 44 Ppsfreq int32 45 Jitter int32 46 Shift int32 47 Stabil int32 48 Jitcnt int32 49 Calcnt int32 50 Errcnt int32 51 Stbcnt int32 52 Tai int32 53 Pad_cgo_0 [44]byte 54 } 55 56 type Time_t int32 57 58 type Tms struct { 59 Utime int32 60 Stime int32 61 Cutime int32 62 Cstime int32 63 } 64 65 type Utimbuf struct { 66 Actime int32 67 Modtime int32 68 } 69 70 type Rusage struct { 71 Utime Timeval 72 Stime Timeval 73 Maxrss int32 74 Ixrss int32 75 Idrss int32 76 Isrss int32 77 Minflt int32 78 Majflt int32 79 Nswap int32 80 Inblock int32 81 Oublock int32 82 Msgsnd int32 83 Msgrcv int32 84 Nsignals int32 85 Nvcsw int32 86 Nivcsw int32 87 } 88 89 type Rlimit struct { 90 Cur uint64 91 Max uint64 92 } 93 94 type _Gid_t uint32 95 96 type Stat_t struct { 97 Dev uint32 98 Pad1 [3]int32 99 Ino uint64 100 Mode uint32 101 Nlink uint32 102 Uid uint32 103 Gid uint32 104 Rdev uint32 105 Pad2 [3]int32 106 Size int64 107 Atim Timespec 108 Mtim Timespec 109 Ctim Timespec 110 Blksize int32 111 Pad4 int32 112 Blocks int64 113 Pad5 [14]int32 114 } 115 116 type Statfs_t struct { 117 Type int32 118 Bsize int32 119 Frsize int32 120 Pad_cgo_0 [4]byte 121 Blocks uint64 122 Bfree uint64 123 Files uint64 124 Ffree uint64 125 Bavail uint64 126 Fsid Fsid 127 Namelen int32 128 Flags int32 129 Spare [5]int32 130 Pad_cgo_1 [4]byte 131 } 132 133 type Dirent struct { 134 Ino uint64 135 Off int64 136 Reclen uint16 137 Type uint8 138 Name [256]int8 139 Pad_cgo_0 [5]byte 140 } 141 142 type Fsid struct { 143 X__val [2]int32 144 } 145 146 type Flock_t struct { 147 Type int16 148 Whence int16 149 Pad_cgo_0 [4]byte 150 Start int64 151 Len int64 152 Pid int32 153 Pad_cgo_1 [4]byte 154 } 155 156 type RawSockaddrInet4 struct { 157 Family uint16 158 Port uint16 159 Addr [4]byte /* in_addr */ 160 Zero [8]uint8 161 } 162 163 type RawSockaddrInet6 struct { 164 Family uint16 165 Port uint16 166 Flowinfo uint32 167 Addr [16]byte /* in6_addr */ 168 Scope_id uint32 169 } 170 171 type RawSockaddrUnix struct { 172 Family uint16 173 Path [108]int8 174 } 175 176 type RawSockaddrLinklayer struct { 177 Family uint16 178 Protocol uint16 179 Ifindex int32 180 Hatype uint16 181 Pkttype uint8 182 Halen uint8 183 Addr [8]uint8 184 } 185 186 type RawSockaddrNetlink struct { 187 Family uint16 188 Pad uint16 189 Pid uint32 190 Groups uint32 191 } 192 193 type RawSockaddr struct { 194 Family uint16 195 Data [14]int8 196 } 197 198 type RawSockaddrAny struct { 199 Addr RawSockaddr 200 Pad [96]int8 201 } 202 203 type _Socklen uint32 204 205 type Linger struct { 206 Onoff int32 207 Linger int32 208 } 209 210 type Iovec struct { 211 Base *byte 212 Len uint32 213 } 214 215 type IPMreq struct { 216 Multiaddr [4]byte /* in_addr */ 217 Interface [4]byte /* in_addr */ 218 } 219 220 type IPMreqn struct { 221 Multiaddr [4]byte /* in_addr */ 222 Address [4]byte /* in_addr */ 223 Ifindex int32 224 } 225 226 type IPv6Mreq struct { 227 Multiaddr [16]byte /* in6_addr */ 228 Interface uint32 229 } 230 231 type Msghdr struct { 232 Name *byte 233 Namelen uint32 234 Iov *Iovec 235 Iovlen uint32 236 Control *byte 237 Controllen uint32 238 Flags int32 239 } 240 241 type Cmsghdr struct { 242 Len uint32 243 Level int32 244 Type int32 245 } 246 247 type Inet4Pktinfo struct { 248 Ifindex int32 249 Spec_dst [4]byte /* in_addr */ 250 Addr [4]byte /* in_addr */ 251 } 252 253 type Inet6Pktinfo struct { 254 Addr [16]byte /* in6_addr */ 255 Ifindex uint32 256 } 257 258 type IPv6MTUInfo struct { 259 Addr RawSockaddrInet6 260 Mtu uint32 261 } 262 263 type ICMPv6Filter struct { 264 Data [8]uint32 265 } 266 267 type Ucred struct { 268 Pid int32 269 Uid uint32 270 Gid uint32 271 } 272 273 type TCPInfo struct { 274 State uint8 275 Ca_state uint8 276 Retransmits uint8 277 Probes uint8 278 Backoff uint8 279 Options uint8 280 Pad_cgo_0 [2]byte 281 Rto uint32 282 Ato uint32 283 Snd_mss uint32 284 Rcv_mss uint32 285 Unacked uint32 286 Sacked uint32 287 Lost uint32 288 Retrans uint32 289 Fackets uint32 290 Last_data_sent uint32 291 Last_ack_sent uint32 292 Last_data_recv uint32 293 Last_ack_recv uint32 294 Pmtu uint32 295 Rcv_ssthresh uint32 296 Rtt uint32 297 Rttvar uint32 298 Snd_ssthresh uint32 299 Snd_cwnd uint32 300 Advmss uint32 301 Reordering uint32 302 Rcv_rtt uint32 303 Rcv_space uint32 304 Total_retrans uint32 305 } 306 307 const ( 308 SizeofSockaddrInet4 = 0x10 309 SizeofSockaddrInet6 = 0x1c 310 SizeofSockaddrAny = 0x70 311 SizeofSockaddrUnix = 0x6e 312 SizeofSockaddrLinklayer = 0x14 313 SizeofSockaddrNetlink = 0xc 314 SizeofLinger = 0x8 315 SizeofIPMreq = 0x8 316 SizeofIPMreqn = 0xc 317 SizeofIPv6Mreq = 0x14 318 SizeofMsghdr = 0x1c 319 SizeofCmsghdr = 0xc 320 SizeofInet4Pktinfo = 0xc 321 SizeofInet6Pktinfo = 0x14 322 SizeofIPv6MTUInfo = 0x20 323 SizeofICMPv6Filter = 0x20 324 SizeofUcred = 0xc 325 SizeofTCPInfo = 0x68 326 ) 327 328 const ( 329 IFA_UNSPEC = 0x0 330 IFA_ADDRESS = 0x1 331 IFA_LOCAL = 0x2 332 IFA_LABEL = 0x3 333 IFA_BROADCAST = 0x4 334 IFA_ANYCAST = 0x5 335 IFA_CACHEINFO = 0x6 336 IFA_MULTICAST = 0x7 337 IFLA_UNSPEC = 0x0 338 IFLA_ADDRESS = 0x1 339 IFLA_BROADCAST = 0x2 340 IFLA_IFNAME = 0x3 341 IFLA_MTU = 0x4 342 IFLA_LINK = 0x5 343 IFLA_QDISC = 0x6 344 IFLA_STATS = 0x7 345 IFLA_COST = 0x8 346 IFLA_PRIORITY = 0x9 347 IFLA_MASTER = 0xa 348 IFLA_WIRELESS = 0xb 349 IFLA_PROTINFO = 0xc 350 IFLA_TXQLEN = 0xd 351 IFLA_MAP = 0xe 352 IFLA_WEIGHT = 0xf 353 IFLA_OPERSTATE = 0x10 354 IFLA_LINKMODE = 0x11 355 IFLA_LINKINFO = 0x12 356 IFLA_NET_NS_PID = 0x13 357 IFLA_IFALIAS = 0x14 358 IFLA_MAX = 0x27 359 RT_SCOPE_UNIVERSE = 0x0 360 RT_SCOPE_SITE = 0xc8 361 RT_SCOPE_LINK = 0xfd 362 RT_SCOPE_HOST = 0xfe 363 RT_SCOPE_NOWHERE = 0xff 364 RT_TABLE_UNSPEC = 0x0 365 RT_TABLE_COMPAT = 0xfc 366 RT_TABLE_DEFAULT = 0xfd 367 RT_TABLE_MAIN = 0xfe 368 RT_TABLE_LOCAL = 0xff 369 RT_TABLE_MAX = 0xffffffff 370 RTA_UNSPEC = 0x0 371 RTA_DST = 0x1 372 RTA_SRC = 0x2 373 RTA_IIF = 0x3 374 RTA_OIF = 0x4 375 RTA_GATEWAY = 0x5 376 RTA_PRIORITY = 0x6 377 RTA_PREFSRC = 0x7 378 RTA_METRICS = 0x8 379 RTA_MULTIPATH = 0x9 380 RTA_FLOW = 0xb 381 RTA_CACHEINFO = 0xc 382 RTA_TABLE = 0xf 383 RTN_UNSPEC = 0x0 384 RTN_UNICAST = 0x1 385 RTN_LOCAL = 0x2 386 RTN_BROADCAST = 0x3 387 RTN_ANYCAST = 0x4 388 RTN_MULTICAST = 0x5 389 RTN_BLACKHOLE = 0x6 390 RTN_UNREACHABLE = 0x7 391 RTN_PROHIBIT = 0x8 392 RTN_THROW = 0x9 393 RTN_NAT = 0xa 394 RTN_XRESOLVE = 0xb 395 RTNLGRP_NONE = 0x0 396 RTNLGRP_LINK = 0x1 397 RTNLGRP_NOTIFY = 0x2 398 RTNLGRP_NEIGH = 0x3 399 RTNLGRP_TC = 0x4 400 RTNLGRP_IPV4_IFADDR = 0x5 401 RTNLGRP_IPV4_MROUTE = 0x6 402 RTNLGRP_IPV4_ROUTE = 0x7 403 RTNLGRP_IPV4_RULE = 0x8 404 RTNLGRP_IPV6_IFADDR = 0x9 405 RTNLGRP_IPV6_MROUTE = 0xa 406 RTNLGRP_IPV6_ROUTE = 0xb 407 RTNLGRP_IPV6_IFINFO = 0xc 408 RTNLGRP_IPV6_PREFIX = 0x12 409 RTNLGRP_IPV6_RULE = 0x13 410 RTNLGRP_ND_USEROPT = 0x14 411 SizeofNlMsghdr = 0x10 412 SizeofNlMsgerr = 0x14 413 SizeofRtGenmsg = 0x1 414 SizeofNlAttr = 0x4 415 SizeofRtAttr = 0x4 416 SizeofIfInfomsg = 0x10 417 SizeofIfAddrmsg = 0x8 418 SizeofRtMsg = 0xc 419 SizeofRtNexthop = 0x8 420 ) 421 422 type NlMsghdr struct { 423 Len uint32 424 Type uint16 425 Flags uint16 426 Seq uint32 427 Pid uint32 428 } 429 430 type NlMsgerr struct { 431 Error int32 432 Msg NlMsghdr 433 } 434 435 type RtGenmsg struct { 436 Family uint8 437 } 438 439 type NlAttr struct { 440 Len uint16 441 Type uint16 442 } 443 444 type RtAttr struct { 445 Len uint16 446 Type uint16 447 } 448 449 type IfInfomsg struct { 450 Family uint8 451 X__ifi_pad uint8 452 Type uint16 453 Index int32 454 Flags uint32 455 Change uint32 456 } 457 458 type IfAddrmsg struct { 459 Family uint8 460 Prefixlen uint8 461 Flags uint8 462 Scope uint8 463 Index uint32 464 } 465 466 type RtMsg struct { 467 Family uint8 468 Dst_len uint8 469 Src_len uint8 470 Tos uint8 471 Table uint8 472 Protocol uint8 473 Scope uint8 474 Type uint8 475 Flags uint32 476 } 477 478 type RtNexthop struct { 479 Len uint16 480 Flags uint8 481 Hops uint8 482 Ifindex int32 483 } 484 485 const ( 486 SizeofSockFilter = 0x8 487 SizeofSockFprog = 0x8 488 ) 489 490 type SockFilter struct { 491 Code uint16 492 Jt uint8 493 Jf uint8 494 K uint32 495 } 496 497 type SockFprog struct { 498 Len uint16 499 Pad_cgo_0 [2]byte 500 Filter *SockFilter 501 } 502 503 type InotifyEvent struct { 504 Wd int32 505 Mask uint32 506 Cookie uint32 507 Len uint32 508 } 509 510 const SizeofInotifyEvent = 0x10 511 512 type PtraceRegs struct { 513 Regs [109]uint32 514 U_tsize uint32 515 U_dsize uint32 516 U_ssize uint32 517 Start_code uint32 518 Start_data uint32 519 Start_stack uint32 520 Signal int32 521 U_ar0 *byte 522 Magic uint32 523 U_comm [32]int8 524 } 525 526 type FdSet struct { 527 Bits [32]int32 528 } 529 530 type Sysinfo_t struct { 531 Uptime int32 532 Loads [3]uint32 533 Totalram uint32 534 Freeram uint32 535 Sharedram uint32 536 Bufferram uint32 537 Totalswap uint32 538 Freeswap uint32 539 Procs uint16 540 Pad uint16 541 Totalhigh uint32 542 Freehigh uint32 543 Unit uint32 544 X_f [8]int8 545 } 546 547 type Utsname struct { 548 Sysname [65]int8 549 Nodename [65]int8 550 Release [65]int8 551 Version [65]int8 552 Machine [65]int8 553 Domainname [65]int8 554 } 555 556 type Ustat_t struct { 557 Tfree int32 558 Tinode uint32 559 Fname [6]int8 560 Fpack [6]int8 561 } 562 563 type EpollEvent struct { 564 Events uint32 565 PadFd int32 566 Fd int32 567 Pad int32 568 } 569 570 const ( 571 _AT_FDCWD = -0x64 572 _AT_REMOVEDIR = 0x200 573 _AT_SYMLINK_NOFOLLOW = 0x100 574 _AT_EACCESS = 0x200 575 ) 576 577 type pollFd struct { 578 Fd int32 579 Events int16 580 Revents int16 581 } 582 583 type Termios struct { 584 Iflag uint32 585 Oflag uint32 586 Cflag uint32 587 Lflag uint32 588 Line uint8 589 Cc [32]uint8 590 Pad_cgo_0 [3]byte 591 } 592 593 const ( 594 IUCLC = 0x200 595 OLCUC = 0x2 596 TCGETS = 0x540d 597 TCSETS = 0x540e 598 XCASE = 0x4 599 )