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