github.com/jgarto/itcv@v0.0.0-20180826224514-4eea09c1aa0d/_vendor/src/golang.org/x/sys/unix/ztypes_linux_s390x.go (about) 1 // +build s390x,linux 2 // Created by cgo -godefs - DO NOT EDIT 3 // cgo -godefs -- -fsigned-char 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 _ [4]byte 36 Offset int64 37 Freq int64 38 Maxerror int64 39 Esterror int64 40 Status int32 41 _ [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 _ [4]byte 51 Stabil int64 52 Jitcnt int64 53 Calcnt int64 54 Errcnt int64 55 Stbcnt int64 56 Tai int32 57 _ [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 uint64 102 Ino uint64 103 Nlink uint64 104 Mode uint32 105 Uid uint32 106 Gid uint32 107 _ int32 108 Rdev uint64 109 Size int64 110 Atim Timespec 111 Mtim Timespec 112 Ctim Timespec 113 Blksize int64 114 Blocks int64 115 _ [3]int64 116 } 117 118 type Statfs_t struct { 119 Type uint32 120 Bsize uint32 121 Blocks uint64 122 Bfree uint64 123 Bavail uint64 124 Files uint64 125 Ffree uint64 126 Fsid Fsid 127 Namelen uint32 128 Frsize uint32 129 Flags uint32 130 Spare [4]uint32 131 _ [4]byte 132 } 133 134 type Dirent struct { 135 Ino uint64 136 Off int64 137 Reclen uint16 138 Type uint8 139 Name [256]int8 140 _ [5]byte 141 } 142 143 type Fsid struct { 144 _ [2]int32 145 } 146 147 type Flock_t struct { 148 Type int16 149 Whence int16 150 _ [4]byte 151 Start int64 152 Len int64 153 Pid int32 154 _ [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 = 0x6 163 FADV_NOREUSE = 0x7 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 _ [4]byte 274 Iov *Iovec 275 Iovlen uint64 276 Control *byte 277 Controllen uint64 278 Flags int32 279 _ [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 _ [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 _ 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 _ [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 Psw PtracePsw 559 Gprs [16]uint64 560 Acrs [16]uint32 561 Orig_gpr2 uint64 562 Fp_regs PtraceFpregs 563 Per_info PtracePer 564 Ieee_instruction_pointer uint64 565 } 566 567 type PtracePsw struct { 568 Mask uint64 569 Addr uint64 570 } 571 572 type PtraceFpregs struct { 573 Fpc uint32 574 _ [4]byte 575 Fprs [16]float64 576 } 577 578 type PtracePer struct { 579 _ [0]uint64 580 _ [24]byte 581 _ [8]byte 582 Starting_addr uint64 583 Ending_addr uint64 584 Perc_atmid uint16 585 _ [6]byte 586 Address uint64 587 Access_id uint8 588 _ [7]byte 589 } 590 591 type FdSet struct { 592 Bits [16]int64 593 } 594 595 type Sysinfo_t struct { 596 Uptime int64 597 Loads [3]uint64 598 Totalram uint64 599 Freeram uint64 600 Sharedram uint64 601 Bufferram uint64 602 Totalswap uint64 603 Freeswap uint64 604 Procs uint16 605 Pad uint16 606 _ [4]byte 607 Totalhigh uint64 608 Freehigh uint64 609 Unit uint32 610 _ [0]int8 611 _ [4]byte 612 } 613 614 type Utsname struct { 615 Sysname [65]int8 616 Nodename [65]int8 617 Release [65]int8 618 Version [65]int8 619 Machine [65]int8 620 Domainname [65]int8 621 } 622 623 type Ustat_t struct { 624 Tfree int32 625 _ [4]byte 626 Tinode uint64 627 Fname [6]int8 628 Fpack [6]int8 629 _ [4]byte 630 } 631 632 type EpollEvent struct { 633 Events uint32 634 _ int32 635 Fd int32 636 Pad int32 637 } 638 639 const ( 640 AT_FDCWD = -0x64 641 AT_REMOVEDIR = 0x200 642 AT_SYMLINK_FOLLOW = 0x400 643 AT_SYMLINK_NOFOLLOW = 0x100 644 ) 645 646 type PollFd struct { 647 Fd int32 648 Events int16 649 Revents int16 650 } 651 652 const ( 653 POLLIN = 0x1 654 POLLPRI = 0x2 655 POLLOUT = 0x4 656 POLLRDHUP = 0x2000 657 POLLERR = 0x8 658 POLLHUP = 0x10 659 POLLNVAL = 0x20 660 ) 661 662 type Sigset_t struct { 663 X__val [16]uint64 664 } 665 666 type Termios struct { 667 Iflag uint32 668 Oflag uint32 669 Cflag uint32 670 Lflag uint32 671 Line uint8 672 Cc [19]uint8 673 Ispeed uint32 674 Ospeed uint32 675 }