golang.org/x/sys@v0.20.1-0.20240517151509-673e0f94c16d/unix/ztypes_linux_s390x.go (about) 1 // cgo -godefs -objdir=/tmp/s390x/cgo -- -Wall -Werror -static -I/tmp/s390x/include -fsigned-char linux/types.go | go run mkpost.go 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 4 //go:build s390x && linux 5 6 package unix 7 8 const ( 9 SizeofPtr = 0x8 10 SizeofLong = 0x8 11 ) 12 13 type ( 14 _C_long int64 15 ) 16 17 type Timespec struct { 18 Sec int64 19 Nsec int64 20 } 21 22 type Timeval struct { 23 Sec int64 24 Usec int64 25 } 26 27 type Timex struct { 28 Modes uint32 29 Offset int64 30 Freq int64 31 Maxerror int64 32 Esterror int64 33 Status int32 34 Constant int64 35 Precision int64 36 Tolerance int64 37 Time Timeval 38 Tick int64 39 Ppsfreq int64 40 Jitter int64 41 Shift int32 42 Stabil int64 43 Jitcnt int64 44 Calcnt int64 45 Errcnt int64 46 Stbcnt int64 47 Tai int32 48 _ [44]byte 49 } 50 51 type Time_t int64 52 53 type Tms struct { 54 Utime int64 55 Stime int64 56 Cutime int64 57 Cstime int64 58 } 59 60 type Utimbuf struct { 61 Actime int64 62 Modtime int64 63 } 64 65 type Rusage struct { 66 Utime Timeval 67 Stime Timeval 68 Maxrss int64 69 Ixrss int64 70 Idrss int64 71 Isrss int64 72 Minflt int64 73 Majflt int64 74 Nswap int64 75 Inblock int64 76 Oublock int64 77 Msgsnd int64 78 Msgrcv int64 79 Nsignals int64 80 Nvcsw int64 81 Nivcsw int64 82 } 83 84 type Stat_t struct { 85 Dev uint64 86 Ino uint64 87 Nlink uint64 88 Mode uint32 89 Uid uint32 90 Gid uint32 91 _ int32 92 Rdev uint64 93 Size int64 94 Atim Timespec 95 Mtim Timespec 96 Ctim Timespec 97 Blksize int64 98 Blocks int64 99 _ [3]int64 100 } 101 102 type Dirent struct { 103 Ino uint64 104 Off int64 105 Reclen uint16 106 Type uint8 107 Name [256]int8 108 _ [5]byte 109 } 110 111 type Flock_t struct { 112 Type int16 113 Whence int16 114 Start int64 115 Len int64 116 Pid int32 117 _ [4]byte 118 } 119 120 type DmNameList struct { 121 Dev uint64 122 Next uint32 123 Name [0]byte 124 _ [4]byte 125 } 126 127 const ( 128 FADV_DONTNEED = 0x6 129 FADV_NOREUSE = 0x7 130 ) 131 132 type RawSockaddrNFCLLCP struct { 133 Sa_family uint16 134 Dev_idx uint32 135 Target_idx uint32 136 Nfc_protocol uint32 137 Dsap uint8 138 Ssap uint8 139 Service_name [63]uint8 140 Service_name_len uint64 141 } 142 143 type RawSockaddr struct { 144 Family uint16 145 Data [14]int8 146 } 147 148 type RawSockaddrAny struct { 149 Addr RawSockaddr 150 Pad [96]int8 151 } 152 153 type Iovec struct { 154 Base *byte 155 Len uint64 156 } 157 158 type Msghdr struct { 159 Name *byte 160 Namelen uint32 161 Iov *Iovec 162 Iovlen uint64 163 Control *byte 164 Controllen uint64 165 Flags int32 166 _ [4]byte 167 } 168 169 type Cmsghdr struct { 170 Len uint64 171 Level int32 172 Type int32 173 } 174 175 type ifreq struct { 176 Ifrn [16]byte 177 Ifru [24]byte 178 } 179 180 const ( 181 SizeofSockaddrNFCLLCP = 0x60 182 SizeofIovec = 0x10 183 SizeofMsghdr = 0x38 184 SizeofCmsghdr = 0x10 185 ) 186 187 const ( 188 SizeofSockFprog = 0x10 189 ) 190 191 type PtraceRegs struct { 192 Psw PtracePsw 193 Gprs [16]uint64 194 Acrs [16]uint32 195 Orig_gpr2 uint64 196 Fp_regs PtraceFpregs 197 Per_info PtracePer 198 Ieee_instruction_pointer uint64 199 } 200 201 type PtracePsw struct { 202 Mask uint64 203 Addr uint64 204 } 205 206 type PtraceFpregs struct { 207 Fpc uint32 208 Fprs [16]float64 209 } 210 211 type PtracePer struct { 212 Control_regs [3]uint64 213 _ [8]byte 214 Starting_addr uint64 215 Ending_addr uint64 216 Perc_atmid uint16 217 Address uint64 218 Access_id uint8 219 _ [7]byte 220 } 221 222 type FdSet struct { 223 Bits [16]int64 224 } 225 226 type Sysinfo_t struct { 227 Uptime int64 228 Loads [3]uint64 229 Totalram uint64 230 Freeram uint64 231 Sharedram uint64 232 Bufferram uint64 233 Totalswap uint64 234 Freeswap uint64 235 Procs uint16 236 Pad uint16 237 Totalhigh uint64 238 Freehigh uint64 239 Unit uint32 240 _ [0]int8 241 _ [4]byte 242 } 243 244 type Ustat_t struct { 245 Tfree int32 246 Tinode uint64 247 Fname [6]int8 248 Fpack [6]int8 249 _ [4]byte 250 } 251 252 type EpollEvent struct { 253 Events uint32 254 _ int32 255 Fd int32 256 Pad int32 257 } 258 259 const ( 260 OPEN_TREE_CLOEXEC = 0x80000 261 ) 262 263 const ( 264 POLLRDHUP = 0x2000 265 ) 266 267 type Sigset_t struct { 268 Val [16]uint64 269 } 270 271 const _C__NSIG = 0x41 272 273 const ( 274 SIG_BLOCK = 0x0 275 SIG_UNBLOCK = 0x1 276 SIG_SETMASK = 0x2 277 ) 278 279 type Siginfo struct { 280 Signo int32 281 Errno int32 282 Code int32 283 _ int32 284 _ [112]byte 285 } 286 287 type Termios struct { 288 Iflag uint32 289 Oflag uint32 290 Cflag uint32 291 Lflag uint32 292 Line uint8 293 Cc [19]uint8 294 Ispeed uint32 295 Ospeed uint32 296 } 297 298 type Taskstats struct { 299 Version uint16 300 Ac_exitcode uint32 301 Ac_flag uint8 302 Ac_nice uint8 303 Cpu_count uint64 304 Cpu_delay_total uint64 305 Blkio_count uint64 306 Blkio_delay_total uint64 307 Swapin_count uint64 308 Swapin_delay_total uint64 309 Cpu_run_real_total uint64 310 Cpu_run_virtual_total uint64 311 Ac_comm [32]int8 312 Ac_sched uint8 313 Ac_pad [3]uint8 314 _ [4]byte 315 Ac_uid uint32 316 Ac_gid uint32 317 Ac_pid uint32 318 Ac_ppid uint32 319 Ac_btime uint32 320 Ac_etime uint64 321 Ac_utime uint64 322 Ac_stime uint64 323 Ac_minflt uint64 324 Ac_majflt uint64 325 Coremem uint64 326 Virtmem uint64 327 Hiwater_rss uint64 328 Hiwater_vm uint64 329 Read_char uint64 330 Write_char uint64 331 Read_syscalls uint64 332 Write_syscalls uint64 333 Read_bytes uint64 334 Write_bytes uint64 335 Cancelled_write_bytes uint64 336 Nvcsw uint64 337 Nivcsw uint64 338 Ac_utimescaled uint64 339 Ac_stimescaled uint64 340 Cpu_scaled_run_real_total uint64 341 Freepages_count uint64 342 Freepages_delay_total uint64 343 Thrashing_count uint64 344 Thrashing_delay_total uint64 345 Ac_btime64 uint64 346 Compact_count uint64 347 Compact_delay_total uint64 348 Ac_tgid uint32 349 Ac_tgetime uint64 350 Ac_exe_dev uint64 351 Ac_exe_inode uint64 352 Wpcopy_count uint64 353 Wpcopy_delay_total uint64 354 Irq_count uint64 355 Irq_delay_total uint64 356 } 357 358 type cpuMask uint64 359 360 const ( 361 _NCPUBITS = 0x40 362 ) 363 364 const ( 365 CBitFieldMaskBit0 = 0x8000000000000000 366 CBitFieldMaskBit1 = 0x4000000000000000 367 CBitFieldMaskBit2 = 0x2000000000000000 368 CBitFieldMaskBit3 = 0x1000000000000000 369 CBitFieldMaskBit4 = 0x800000000000000 370 CBitFieldMaskBit5 = 0x400000000000000 371 CBitFieldMaskBit6 = 0x200000000000000 372 CBitFieldMaskBit7 = 0x100000000000000 373 CBitFieldMaskBit8 = 0x80000000000000 374 CBitFieldMaskBit9 = 0x40000000000000 375 CBitFieldMaskBit10 = 0x20000000000000 376 CBitFieldMaskBit11 = 0x10000000000000 377 CBitFieldMaskBit12 = 0x8000000000000 378 CBitFieldMaskBit13 = 0x4000000000000 379 CBitFieldMaskBit14 = 0x2000000000000 380 CBitFieldMaskBit15 = 0x1000000000000 381 CBitFieldMaskBit16 = 0x800000000000 382 CBitFieldMaskBit17 = 0x400000000000 383 CBitFieldMaskBit18 = 0x200000000000 384 CBitFieldMaskBit19 = 0x100000000000 385 CBitFieldMaskBit20 = 0x80000000000 386 CBitFieldMaskBit21 = 0x40000000000 387 CBitFieldMaskBit22 = 0x20000000000 388 CBitFieldMaskBit23 = 0x10000000000 389 CBitFieldMaskBit24 = 0x8000000000 390 CBitFieldMaskBit25 = 0x4000000000 391 CBitFieldMaskBit26 = 0x2000000000 392 CBitFieldMaskBit27 = 0x1000000000 393 CBitFieldMaskBit28 = 0x800000000 394 CBitFieldMaskBit29 = 0x400000000 395 CBitFieldMaskBit30 = 0x200000000 396 CBitFieldMaskBit31 = 0x100000000 397 CBitFieldMaskBit32 = 0x80000000 398 CBitFieldMaskBit33 = 0x40000000 399 CBitFieldMaskBit34 = 0x20000000 400 CBitFieldMaskBit35 = 0x10000000 401 CBitFieldMaskBit36 = 0x8000000 402 CBitFieldMaskBit37 = 0x4000000 403 CBitFieldMaskBit38 = 0x2000000 404 CBitFieldMaskBit39 = 0x1000000 405 CBitFieldMaskBit40 = 0x800000 406 CBitFieldMaskBit41 = 0x400000 407 CBitFieldMaskBit42 = 0x200000 408 CBitFieldMaskBit43 = 0x100000 409 CBitFieldMaskBit44 = 0x80000 410 CBitFieldMaskBit45 = 0x40000 411 CBitFieldMaskBit46 = 0x20000 412 CBitFieldMaskBit47 = 0x10000 413 CBitFieldMaskBit48 = 0x8000 414 CBitFieldMaskBit49 = 0x4000 415 CBitFieldMaskBit50 = 0x2000 416 CBitFieldMaskBit51 = 0x1000 417 CBitFieldMaskBit52 = 0x800 418 CBitFieldMaskBit53 = 0x400 419 CBitFieldMaskBit54 = 0x200 420 CBitFieldMaskBit55 = 0x100 421 CBitFieldMaskBit56 = 0x80 422 CBitFieldMaskBit57 = 0x40 423 CBitFieldMaskBit58 = 0x20 424 CBitFieldMaskBit59 = 0x10 425 CBitFieldMaskBit60 = 0x8 426 CBitFieldMaskBit61 = 0x4 427 CBitFieldMaskBit62 = 0x2 428 CBitFieldMaskBit63 = 0x1 429 ) 430 431 type SockaddrStorage struct { 432 Family uint16 433 Data [118]byte 434 _ uint64 435 } 436 437 type HDGeometry struct { 438 Heads uint8 439 Sectors uint8 440 Cylinders uint16 441 Start uint64 442 } 443 444 type Statfs_t struct { 445 Type uint32 446 Bsize uint32 447 Blocks uint64 448 Bfree uint64 449 Bavail uint64 450 Files uint64 451 Ffree uint64 452 Fsid Fsid 453 Namelen uint32 454 Frsize uint32 455 Flags uint32 456 Spare [4]uint32 457 _ [4]byte 458 } 459 460 type TpacketHdr struct { 461 Status uint64 462 Len uint32 463 Snaplen uint32 464 Mac uint16 465 Net uint16 466 Sec uint32 467 Usec uint32 468 _ [4]byte 469 } 470 471 const ( 472 SizeofTpacketHdr = 0x20 473 ) 474 475 type RTCPLLInfo struct { 476 Ctrl int32 477 Value int32 478 Max int32 479 Min int32 480 Posmult int32 481 Negmult int32 482 Clock int64 483 } 484 485 type BlkpgPartition struct { 486 Start int64 487 Length int64 488 Pno int32 489 Devname [64]uint8 490 Volname [64]uint8 491 _ [4]byte 492 } 493 494 const ( 495 BLKPG = 0x1269 496 ) 497 498 type CryptoUserAlg struct { 499 Name [64]int8 500 Driver_name [64]int8 501 Module_name [64]int8 502 Type uint32 503 Mask uint32 504 Refcnt uint32 505 Flags uint32 506 } 507 508 type CryptoStatAEAD struct { 509 Type [64]int8 510 Encrypt_cnt uint64 511 Encrypt_tlen uint64 512 Decrypt_cnt uint64 513 Decrypt_tlen uint64 514 Err_cnt uint64 515 } 516 517 type CryptoStatAKCipher struct { 518 Type [64]int8 519 Encrypt_cnt uint64 520 Encrypt_tlen uint64 521 Decrypt_cnt uint64 522 Decrypt_tlen uint64 523 Verify_cnt uint64 524 Sign_cnt uint64 525 Err_cnt uint64 526 } 527 528 type CryptoStatCipher struct { 529 Type [64]int8 530 Encrypt_cnt uint64 531 Encrypt_tlen uint64 532 Decrypt_cnt uint64 533 Decrypt_tlen uint64 534 Err_cnt uint64 535 } 536 537 type CryptoStatCompress struct { 538 Type [64]int8 539 Compress_cnt uint64 540 Compress_tlen uint64 541 Decompress_cnt uint64 542 Decompress_tlen uint64 543 Err_cnt uint64 544 } 545 546 type CryptoStatHash struct { 547 Type [64]int8 548 Hash_cnt uint64 549 Hash_tlen uint64 550 Err_cnt uint64 551 } 552 553 type CryptoStatKPP struct { 554 Type [64]int8 555 Setsecret_cnt uint64 556 Generate_public_key_cnt uint64 557 Compute_shared_secret_cnt uint64 558 Err_cnt uint64 559 } 560 561 type CryptoStatRNG struct { 562 Type [64]int8 563 Generate_cnt uint64 564 Generate_tlen uint64 565 Seed_cnt uint64 566 Err_cnt uint64 567 } 568 569 type CryptoStatLarval struct { 570 Type [64]int8 571 } 572 573 type CryptoReportLarval struct { 574 Type [64]int8 575 } 576 577 type CryptoReportHash struct { 578 Type [64]int8 579 Blocksize uint32 580 Digestsize uint32 581 } 582 583 type CryptoReportCipher struct { 584 Type [64]int8 585 Blocksize uint32 586 Min_keysize uint32 587 Max_keysize uint32 588 } 589 590 type CryptoReportBlkCipher struct { 591 Type [64]int8 592 Geniv [64]int8 593 Blocksize uint32 594 Min_keysize uint32 595 Max_keysize uint32 596 Ivsize uint32 597 } 598 599 type CryptoReportAEAD struct { 600 Type [64]int8 601 Geniv [64]int8 602 Blocksize uint32 603 Maxauthsize uint32 604 Ivsize uint32 605 } 606 607 type CryptoReportComp struct { 608 Type [64]int8 609 } 610 611 type CryptoReportRNG struct { 612 Type [64]int8 613 Seedsize uint32 614 } 615 616 type CryptoReportAKCipher struct { 617 Type [64]int8 618 } 619 620 type CryptoReportKPP struct { 621 Type [64]int8 622 } 623 624 type CryptoReportAcomp struct { 625 Type [64]int8 626 } 627 628 type LoopInfo struct { 629 Number int32 630 Device uint16 631 Inode uint64 632 Rdevice uint16 633 Offset int32 634 Encrypt_type int32 635 Encrypt_key_size int32 636 Flags int32 637 Name [64]int8 638 Encrypt_key [32]uint8 639 Init [2]uint64 640 Reserved [4]int8 641 _ [4]byte 642 } 643 644 type TIPCSubscr struct { 645 Seq TIPCServiceRange 646 Timeout uint32 647 Filter uint32 648 Handle [8]int8 649 } 650 651 type TIPCSIOCLNReq struct { 652 Peer uint32 653 Id uint32 654 Linkname [68]int8 655 } 656 657 type TIPCSIOCNodeIDReq struct { 658 Peer uint32 659 Id [16]int8 660 } 661 662 type PPSKInfo struct { 663 Assert_sequence uint32 664 Clear_sequence uint32 665 Assert_tu PPSKTime 666 Clear_tu PPSKTime 667 Current_mode int32 668 _ [4]byte 669 } 670 671 const ( 672 PPS_GETPARAMS = 0x800870a1 673 PPS_SETPARAMS = 0x400870a2 674 PPS_GETCAP = 0x800870a3 675 PPS_FETCH = 0xc00870a4 676 ) 677 678 const ( 679 PIDFD_NONBLOCK = 0x800 680 ) 681 682 type SysvIpcPerm struct { 683 Key int32 684 Uid uint32 685 Gid uint32 686 Cuid uint32 687 Cgid uint32 688 Mode uint32 689 _ uint16 690 Seq uint16 691 _ uint64 692 _ uint64 693 } 694 type SysvShmDesc struct { 695 Perm SysvIpcPerm 696 Segsz uint64 697 Atime int64 698 Dtime int64 699 Ctime int64 700 Cpid int32 701 Lpid int32 702 Nattch uint64 703 _ uint64 704 _ uint64 705 }