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