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