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