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