1// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char /build/unix/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 7package unix 8 9const ( 10 SizeofPtr = 0x8 11 SizeofLong = 0x8 12) 13 14type ( 15 _C_long int64 16) 17 18type Timespec struct { 19 Sec int64 20 Nsec int64 21} 22 23type Timeval struct { 24 Sec int64 25 Usec int64 26} 27 28type 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 52type Time_t int64 53 54type Tms struct { 55 Utime int64 56 Stime int64 57 Cutime int64 58 Cstime int64 59} 60 61type Utimbuf struct { 62 Actime int64 63 Modtime int64 64} 65 66type 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 85type 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 103type Dirent struct { 104 Ino uint64 105 Off int64 106 Reclen uint16 107 Type uint8 108 Name [256]int8 109 _ [5]byte 110} 111 112type Flock_t struct { 113 Type int16 114 Whence int16 115 Start int64 116 Len int64 117 Pid int32 118 _ [4]byte 119} 120 121type DmNameList struct { 122 Dev uint64 123 Next uint32 124 Name [0]byte 125 _ [4]byte 126} 127 128const ( 129 FADV_DONTNEED = 0x6 130 FADV_NOREUSE = 0x7 131) 132 133type 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 144type RawSockaddr struct { 145 Family uint16 146 Data [14]int8 147} 148 149type RawSockaddrAny struct { 150 Addr RawSockaddr 151 Pad [96]int8 152} 153 154type Iovec struct { 155 Base *byte 156 Len uint64 157} 158 159type 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 170type Cmsghdr struct { 171 Len uint64 172 Level int32 173 Type int32 174} 175 176type ifreq struct { 177 Ifrn [16]byte 178 Ifru [24]byte 179} 180 181const ( 182 SizeofSockaddrNFCLLCP = 0x60 183 SizeofIovec = 0x10 184 SizeofMsghdr = 0x38 185 SizeofCmsghdr = 0x10 186) 187 188const ( 189 SizeofSockFprog = 0x10 190) 191 192type 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 202type PtracePsw struct { 203 Mask uint64 204 Addr uint64 205} 206 207type PtraceFpregs struct { 208 Fpc uint32 209 Fprs [16]float64 210} 211 212type PtracePer struct { 213 _ [0]uint64 214 _ [32]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 223type FdSet struct { 224 Bits [16]int64 225} 226 227type 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 245type Ustat_t struct { 246 Tfree int32 247 Tinode uint64 248 Fname [6]int8 249 Fpack [6]int8 250 _ [4]byte 251} 252 253type EpollEvent struct { 254 Events uint32 255 _ int32 256 Fd int32 257 Pad int32 258} 259 260const ( 261 POLLRDHUP = 0x2000 262) 263 264type Sigset_t struct { 265 Val [16]uint64 266} 267 268const _C__NSIG = 0x41 269 270type Termios struct { 271 Iflag uint32 272 Oflag uint32 273 Cflag uint32 274 Lflag uint32 275 Line uint8 276 Cc [19]uint8 277 Ispeed uint32 278 Ospeed uint32 279} 280 281type Taskstats struct { 282 Version uint16 283 Ac_exitcode uint32 284 Ac_flag uint8 285 Ac_nice uint8 286 Cpu_count uint64 287 Cpu_delay_total uint64 288 Blkio_count uint64 289 Blkio_delay_total uint64 290 Swapin_count uint64 291 Swapin_delay_total uint64 292 Cpu_run_real_total uint64 293 Cpu_run_virtual_total uint64 294 Ac_comm [32]int8 295 Ac_sched uint8 296 Ac_pad [3]uint8 297 _ [4]byte 298 Ac_uid uint32 299 Ac_gid uint32 300 Ac_pid uint32 301 Ac_ppid uint32 302 Ac_btime uint32 303 Ac_etime uint64 304 Ac_utime uint64 305 Ac_stime uint64 306 Ac_minflt uint64 307 Ac_majflt uint64 308 Coremem uint64 309 Virtmem uint64 310 Hiwater_rss uint64 311 Hiwater_vm uint64 312 Read_char uint64 313 Write_char uint64 314 Read_syscalls uint64 315 Write_syscalls uint64 316 Read_bytes uint64 317 Write_bytes uint64 318 Cancelled_write_bytes uint64 319 Nvcsw uint64 320 Nivcsw uint64 321 Ac_utimescaled uint64 322 Ac_stimescaled uint64 323 Cpu_scaled_run_real_total uint64 324 Freepages_count uint64 325 Freepages_delay_total uint64 326 Thrashing_count uint64 327 Thrashing_delay_total uint64 328 Ac_btime64 uint64 329} 330 331type cpuMask uint64 332 333const ( 334 _NCPUBITS = 0x40 335) 336 337const ( 338 CBitFieldMaskBit0 = 0x8000000000000000 339 CBitFieldMaskBit1 = 0x4000000000000000 340 CBitFieldMaskBit2 = 0x2000000000000000 341 CBitFieldMaskBit3 = 0x1000000000000000 342 CBitFieldMaskBit4 = 0x800000000000000 343 CBitFieldMaskBit5 = 0x400000000000000 344 CBitFieldMaskBit6 = 0x200000000000000 345 CBitFieldMaskBit7 = 0x100000000000000 346 CBitFieldMaskBit8 = 0x80000000000000 347 CBitFieldMaskBit9 = 0x40000000000000 348 CBitFieldMaskBit10 = 0x20000000000000 349 CBitFieldMaskBit11 = 0x10000000000000 350 CBitFieldMaskBit12 = 0x8000000000000 351 CBitFieldMaskBit13 = 0x4000000000000 352 CBitFieldMaskBit14 = 0x2000000000000 353 CBitFieldMaskBit15 = 0x1000000000000 354 CBitFieldMaskBit16 = 0x800000000000 355 CBitFieldMaskBit17 = 0x400000000000 356 CBitFieldMaskBit18 = 0x200000000000 357 CBitFieldMaskBit19 = 0x100000000000 358 CBitFieldMaskBit20 = 0x80000000000 359 CBitFieldMaskBit21 = 0x40000000000 360 CBitFieldMaskBit22 = 0x20000000000 361 CBitFieldMaskBit23 = 0x10000000000 362 CBitFieldMaskBit24 = 0x8000000000 363 CBitFieldMaskBit25 = 0x4000000000 364 CBitFieldMaskBit26 = 0x2000000000 365 CBitFieldMaskBit27 = 0x1000000000 366 CBitFieldMaskBit28 = 0x800000000 367 CBitFieldMaskBit29 = 0x400000000 368 CBitFieldMaskBit30 = 0x200000000 369 CBitFieldMaskBit31 = 0x100000000 370 CBitFieldMaskBit32 = 0x80000000 371 CBitFieldMaskBit33 = 0x40000000 372 CBitFieldMaskBit34 = 0x20000000 373 CBitFieldMaskBit35 = 0x10000000 374 CBitFieldMaskBit36 = 0x8000000 375 CBitFieldMaskBit37 = 0x4000000 376 CBitFieldMaskBit38 = 0x2000000 377 CBitFieldMaskBit39 = 0x1000000 378 CBitFieldMaskBit40 = 0x800000 379 CBitFieldMaskBit41 = 0x400000 380 CBitFieldMaskBit42 = 0x200000 381 CBitFieldMaskBit43 = 0x100000 382 CBitFieldMaskBit44 = 0x80000 383 CBitFieldMaskBit45 = 0x40000 384 CBitFieldMaskBit46 = 0x20000 385 CBitFieldMaskBit47 = 0x10000 386 CBitFieldMaskBit48 = 0x8000 387 CBitFieldMaskBit49 = 0x4000 388 CBitFieldMaskBit50 = 0x2000 389 CBitFieldMaskBit51 = 0x1000 390 CBitFieldMaskBit52 = 0x800 391 CBitFieldMaskBit53 = 0x400 392 CBitFieldMaskBit54 = 0x200 393 CBitFieldMaskBit55 = 0x100 394 CBitFieldMaskBit56 = 0x80 395 CBitFieldMaskBit57 = 0x40 396 CBitFieldMaskBit58 = 0x20 397 CBitFieldMaskBit59 = 0x10 398 CBitFieldMaskBit60 = 0x8 399 CBitFieldMaskBit61 = 0x4 400 CBitFieldMaskBit62 = 0x2 401 CBitFieldMaskBit63 = 0x1 402) 403 404type SockaddrStorage struct { 405 Family uint16 406 _ [118]int8 407 _ uint64 408} 409 410type HDGeometry struct { 411 Heads uint8 412 Sectors uint8 413 Cylinders uint16 414 Start uint64 415} 416 417type Statfs_t struct { 418 Type uint32 419 Bsize uint32 420 Blocks uint64 421 Bfree uint64 422 Bavail uint64 423 Files uint64 424 Ffree uint64 425 Fsid Fsid 426 Namelen uint32 427 Frsize uint32 428 Flags uint32 429 Spare [4]uint32 430 _ [4]byte 431} 432 433type TpacketHdr struct { 434 Status uint64 435 Len uint32 436 Snaplen uint32 437 Mac uint16 438 Net uint16 439 Sec uint32 440 Usec uint32 441 _ [4]byte 442} 443 444const ( 445 SizeofTpacketHdr = 0x20 446) 447 448type RTCPLLInfo struct { 449 Ctrl int32 450 Value int32 451 Max int32 452 Min int32 453 Posmult int32 454 Negmult int32 455 Clock int64 456} 457 458type BlkpgPartition struct { 459 Start int64 460 Length int64 461 Pno int32 462 Devname [64]uint8 463 Volname [64]uint8 464 _ [4]byte 465} 466 467const ( 468 BLKPG = 0x1269 469) 470 471type XDPUmemReg struct { 472 Addr uint64 473 Len uint64 474 Size uint32 475 Headroom uint32 476 Flags uint32 477 _ [4]byte 478} 479 480type CryptoUserAlg struct { 481 Name [64]int8 482 Driver_name [64]int8 483 Module_name [64]int8 484 Type uint32 485 Mask uint32 486 Refcnt uint32 487 Flags uint32 488} 489 490type CryptoStatAEAD struct { 491 Type [64]int8 492 Encrypt_cnt uint64 493 Encrypt_tlen uint64 494 Decrypt_cnt uint64 495 Decrypt_tlen uint64 496 Err_cnt uint64 497} 498 499type CryptoStatAKCipher struct { 500 Type [64]int8 501 Encrypt_cnt uint64 502 Encrypt_tlen uint64 503 Decrypt_cnt uint64 504 Decrypt_tlen uint64 505 Verify_cnt uint64 506 Sign_cnt uint64 507 Err_cnt uint64 508} 509 510type CryptoStatCipher struct { 511 Type [64]int8 512 Encrypt_cnt uint64 513 Encrypt_tlen uint64 514 Decrypt_cnt uint64 515 Decrypt_tlen uint64 516 Err_cnt uint64 517} 518 519type CryptoStatCompress struct { 520 Type [64]int8 521 Compress_cnt uint64 522 Compress_tlen uint64 523 Decompress_cnt uint64 524 Decompress_tlen uint64 525 Err_cnt uint64 526} 527 528type CryptoStatHash struct { 529 Type [64]int8 530 Hash_cnt uint64 531 Hash_tlen uint64 532 Err_cnt uint64 533} 534 535type CryptoStatKPP struct { 536 Type [64]int8 537 Setsecret_cnt uint64 538 Generate_public_key_cnt uint64 539 Compute_shared_secret_cnt uint64 540 Err_cnt uint64 541} 542 543type CryptoStatRNG struct { 544 Type [64]int8 545 Generate_cnt uint64 546 Generate_tlen uint64 547 Seed_cnt uint64 548 Err_cnt uint64 549} 550 551type CryptoStatLarval struct { 552 Type [64]int8 553} 554 555type CryptoReportLarval struct { 556 Type [64]int8 557} 558 559type CryptoReportHash struct { 560 Type [64]int8 561 Blocksize uint32 562 Digestsize uint32 563} 564 565type CryptoReportCipher struct { 566 Type [64]int8 567 Blocksize uint32 568 Min_keysize uint32 569 Max_keysize uint32 570} 571 572type CryptoReportBlkCipher struct { 573 Type [64]int8 574 Geniv [64]int8 575 Blocksize uint32 576 Min_keysize uint32 577 Max_keysize uint32 578 Ivsize uint32 579} 580 581type CryptoReportAEAD struct { 582 Type [64]int8 583 Geniv [64]int8 584 Blocksize uint32 585 Maxauthsize uint32 586 Ivsize uint32 587} 588 589type CryptoReportComp struct { 590 Type [64]int8 591} 592 593type CryptoReportRNG struct { 594 Type [64]int8 595 Seedsize uint32 596} 597 598type CryptoReportAKCipher struct { 599 Type [64]int8 600} 601 602type CryptoReportKPP struct { 603 Type [64]int8 604} 605 606type CryptoReportAcomp struct { 607 Type [64]int8 608} 609 610type LoopInfo struct { 611 Number int32 612 Device uint16 613 Inode uint64 614 Rdevice uint16 615 Offset int32 616 Encrypt_type int32 617 Encrypt_key_size int32 618 Flags int32 619 Name [64]int8 620 Encrypt_key [32]uint8 621 Init [2]uint64 622 Reserved [4]int8 623 _ [4]byte 624} 625 626type TIPCSubscr struct { 627 Seq TIPCServiceRange 628 Timeout uint32 629 Filter uint32 630 Handle [8]int8 631} 632 633type TIPCSIOCLNReq struct { 634 Peer uint32 635 Id uint32 636 Linkname [68]int8 637} 638 639type TIPCSIOCNodeIDReq struct { 640 Peer uint32 641 Id [16]int8 642} 643 644type PPSKInfo struct { 645 Assert_sequence uint32 646 Clear_sequence uint32 647 Assert_tu PPSKTime 648 Clear_tu PPSKTime 649 Current_mode int32 650 _ [4]byte 651} 652 653const ( 654 PPS_GETPARAMS = 0x800870a1 655 PPS_SETPARAMS = 0x400870a2 656 PPS_GETCAP = 0x800870a3 657 PPS_FETCH = 0xc00870a4 658) 659 660const ( 661 PIDFD_NONBLOCK = 0x800 662) 663 664type SysvIpcPerm struct { 665 Key int32 666 Uid uint32 667 Gid uint32 668 Cuid uint32 669 Cgid uint32 670 Mode uint32 671 _ uint16 672 Seq uint16 673 _ uint64 674 _ uint64 675} 676type SysvShmDesc struct { 677 Perm SysvIpcPerm 678 Segsz uint64 679 Atime int64 680 Dtime int64 681 Ctime int64 682 Cpid int32 683 Lpid int32 684 Nattch uint64 685 _ uint64 686 _ uint64 687} 688