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