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