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