1// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/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 RawSockaddr struct { 138 Family uint16 139 Data [14]uint8 140} 141 142type RawSockaddrAny struct { 143 Addr RawSockaddr 144 Pad [96]uint8 145} 146 147type Iovec struct { 148 Base *byte 149 Len uint32 150} 151 152type Msghdr struct { 153 Name *byte 154 Namelen uint32 155 Iov *Iovec 156 Iovlen uint32 157 Control *byte 158 Controllen uint32 159 Flags int32 160} 161 162type Cmsghdr struct { 163 Len uint32 164 Level int32 165 Type int32 166} 167 168const ( 169 SizeofIovec = 0x8 170 SizeofMsghdr = 0x1c 171 SizeofCmsghdr = 0xc 172) 173 174const ( 175 SizeofSockFprog = 0x8 176) 177 178type PtraceRegs struct { 179 Gpr [32]uint32 180 Nip uint32 181 Msr uint32 182 Orig_gpr3 uint32 183 Ctr uint32 184 Link uint32 185 Xer uint32 186 Ccr uint32 187 Mq uint32 188 Trap uint32 189 Dar uint32 190 Dsisr uint32 191 Result uint32 192} 193 194type FdSet struct { 195 Bits [32]int32 196} 197 198type Sysinfo_t struct { 199 Uptime int32 200 Loads [3]uint32 201 Totalram uint32 202 Freeram uint32 203 Sharedram uint32 204 Bufferram uint32 205 Totalswap uint32 206 Freeswap uint32 207 Procs uint16 208 Pad uint16 209 Totalhigh uint32 210 Freehigh uint32 211 Unit uint32 212 _ [8]uint8 213} 214 215type Ustat_t struct { 216 Tfree int32 217 Tinode uint32 218 Fname [6]uint8 219 Fpack [6]uint8 220} 221 222type EpollEvent struct { 223 Events uint32 224 _ int32 225 Fd int32 226 Pad int32 227} 228 229const ( 230 POLLRDHUP = 0x2000 231) 232 233type Sigset_t struct { 234 Val [32]uint32 235} 236 237const _C__NSIG = 0x41 238 239type Termios struct { 240 Iflag uint32 241 Oflag uint32 242 Cflag uint32 243 Lflag uint32 244 Cc [19]uint8 245 Line uint8 246 Ispeed uint32 247 Ospeed uint32 248} 249 250type Taskstats struct { 251 Version uint16 252 Ac_exitcode uint32 253 Ac_flag uint8 254 Ac_nice uint8 255 _ [4]byte 256 Cpu_count uint64 257 Cpu_delay_total uint64 258 Blkio_count uint64 259 Blkio_delay_total uint64 260 Swapin_count uint64 261 Swapin_delay_total uint64 262 Cpu_run_real_total uint64 263 Cpu_run_virtual_total uint64 264 Ac_comm [32]uint8 265 Ac_sched uint8 266 Ac_pad [3]uint8 267 _ [4]byte 268 Ac_uid uint32 269 Ac_gid uint32 270 Ac_pid uint32 271 Ac_ppid uint32 272 Ac_btime uint32 273 _ [4]byte 274 Ac_etime uint64 275 Ac_utime uint64 276 Ac_stime uint64 277 Ac_minflt uint64 278 Ac_majflt uint64 279 Coremem uint64 280 Virtmem uint64 281 Hiwater_rss uint64 282 Hiwater_vm uint64 283 Read_char uint64 284 Write_char uint64 285 Read_syscalls uint64 286 Write_syscalls uint64 287 Read_bytes uint64 288 Write_bytes uint64 289 Cancelled_write_bytes uint64 290 Nvcsw uint64 291 Nivcsw uint64 292 Ac_utimescaled uint64 293 Ac_stimescaled uint64 294 Cpu_scaled_run_real_total uint64 295 Freepages_count uint64 296 Freepages_delay_total uint64 297 Thrashing_count uint64 298 Thrashing_delay_total uint64 299 Ac_btime64 uint64 300} 301 302type cpuMask uint32 303 304const ( 305 _NCPUBITS = 0x20 306) 307 308const ( 309 CBitFieldMaskBit0 = 0x8000000000000000 310 CBitFieldMaskBit1 = 0x4000000000000000 311 CBitFieldMaskBit2 = 0x2000000000000000 312 CBitFieldMaskBit3 = 0x1000000000000000 313 CBitFieldMaskBit4 = 0x800000000000000 314 CBitFieldMaskBit5 = 0x400000000000000 315 CBitFieldMaskBit6 = 0x200000000000000 316 CBitFieldMaskBit7 = 0x100000000000000 317 CBitFieldMaskBit8 = 0x80000000000000 318 CBitFieldMaskBit9 = 0x40000000000000 319 CBitFieldMaskBit10 = 0x20000000000000 320 CBitFieldMaskBit11 = 0x10000000000000 321 CBitFieldMaskBit12 = 0x8000000000000 322 CBitFieldMaskBit13 = 0x4000000000000 323 CBitFieldMaskBit14 = 0x2000000000000 324 CBitFieldMaskBit15 = 0x1000000000000 325 CBitFieldMaskBit16 = 0x800000000000 326 CBitFieldMaskBit17 = 0x400000000000 327 CBitFieldMaskBit18 = 0x200000000000 328 CBitFieldMaskBit19 = 0x100000000000 329 CBitFieldMaskBit20 = 0x80000000000 330 CBitFieldMaskBit21 = 0x40000000000 331 CBitFieldMaskBit22 = 0x20000000000 332 CBitFieldMaskBit23 = 0x10000000000 333 CBitFieldMaskBit24 = 0x8000000000 334 CBitFieldMaskBit25 = 0x4000000000 335 CBitFieldMaskBit26 = 0x2000000000 336 CBitFieldMaskBit27 = 0x1000000000 337 CBitFieldMaskBit28 = 0x800000000 338 CBitFieldMaskBit29 = 0x400000000 339 CBitFieldMaskBit30 = 0x200000000 340 CBitFieldMaskBit31 = 0x100000000 341 CBitFieldMaskBit32 = 0x80000000 342 CBitFieldMaskBit33 = 0x40000000 343 CBitFieldMaskBit34 = 0x20000000 344 CBitFieldMaskBit35 = 0x10000000 345 CBitFieldMaskBit36 = 0x8000000 346 CBitFieldMaskBit37 = 0x4000000 347 CBitFieldMaskBit38 = 0x2000000 348 CBitFieldMaskBit39 = 0x1000000 349 CBitFieldMaskBit40 = 0x800000 350 CBitFieldMaskBit41 = 0x400000 351 CBitFieldMaskBit42 = 0x200000 352 CBitFieldMaskBit43 = 0x100000 353 CBitFieldMaskBit44 = 0x80000 354 CBitFieldMaskBit45 = 0x40000 355 CBitFieldMaskBit46 = 0x20000 356 CBitFieldMaskBit47 = 0x10000 357 CBitFieldMaskBit48 = 0x8000 358 CBitFieldMaskBit49 = 0x4000 359 CBitFieldMaskBit50 = 0x2000 360 CBitFieldMaskBit51 = 0x1000 361 CBitFieldMaskBit52 = 0x800 362 CBitFieldMaskBit53 = 0x400 363 CBitFieldMaskBit54 = 0x200 364 CBitFieldMaskBit55 = 0x100 365 CBitFieldMaskBit56 = 0x80 366 CBitFieldMaskBit57 = 0x40 367 CBitFieldMaskBit58 = 0x20 368 CBitFieldMaskBit59 = 0x10 369 CBitFieldMaskBit60 = 0x8 370 CBitFieldMaskBit61 = 0x4 371 CBitFieldMaskBit62 = 0x2 372 CBitFieldMaskBit63 = 0x1 373) 374 375type SockaddrStorage struct { 376 Family uint16 377 _ [122]uint8 378 _ uint32 379} 380 381type HDGeometry struct { 382 Heads uint8 383 Sectors uint8 384 Cylinders uint16 385 Start uint32 386} 387 388type Statfs_t struct { 389 Type int32 390 Bsize int32 391 Blocks uint64 392 Bfree uint64 393 Bavail uint64 394 Files uint64 395 Ffree uint64 396 Fsid Fsid 397 Namelen int32 398 Frsize int32 399 Flags int32 400 Spare [4]int32 401 _ [4]byte 402} 403 404type TpacketHdr struct { 405 Status uint32 406 Len uint32 407 Snaplen uint32 408 Mac uint16 409 Net uint16 410 Sec uint32 411 Usec uint32 412} 413 414const ( 415 SizeofTpacketHdr = 0x18 416) 417 418type RTCPLLInfo struct { 419 Ctrl int32 420 Value int32 421 Max int32 422 Min int32 423 Posmult int32 424 Negmult int32 425 Clock int32 426} 427 428type BlkpgPartition struct { 429 Start int64 430 Length int64 431 Pno int32 432 Devname [64]uint8 433 Volname [64]uint8 434 _ [4]byte 435} 436 437const ( 438 BLKPG = 0x20001269 439) 440 441type XDPUmemReg struct { 442 Addr uint64 443 Len uint64 444 Size uint32 445 Headroom uint32 446 Flags uint32 447 _ [4]byte 448} 449 450type CryptoUserAlg struct { 451 Name [64]uint8 452 Driver_name [64]uint8 453 Module_name [64]uint8 454 Type uint32 455 Mask uint32 456 Refcnt uint32 457 Flags uint32 458} 459 460type CryptoStatAEAD struct { 461 Type [64]uint8 462 Encrypt_cnt uint64 463 Encrypt_tlen uint64 464 Decrypt_cnt uint64 465 Decrypt_tlen uint64 466 Err_cnt uint64 467} 468 469type CryptoStatAKCipher struct { 470 Type [64]uint8 471 Encrypt_cnt uint64 472 Encrypt_tlen uint64 473 Decrypt_cnt uint64 474 Decrypt_tlen uint64 475 Verify_cnt uint64 476 Sign_cnt uint64 477 Err_cnt uint64 478} 479 480type CryptoStatCipher struct { 481 Type [64]uint8 482 Encrypt_cnt uint64 483 Encrypt_tlen uint64 484 Decrypt_cnt uint64 485 Decrypt_tlen uint64 486 Err_cnt uint64 487} 488 489type CryptoStatCompress struct { 490 Type [64]uint8 491 Compress_cnt uint64 492 Compress_tlen uint64 493 Decompress_cnt uint64 494 Decompress_tlen uint64 495 Err_cnt uint64 496} 497 498type CryptoStatHash struct { 499 Type [64]uint8 500 Hash_cnt uint64 501 Hash_tlen uint64 502 Err_cnt uint64 503} 504 505type CryptoStatKPP struct { 506 Type [64]uint8 507 Setsecret_cnt uint64 508 Generate_public_key_cnt uint64 509 Compute_shared_secret_cnt uint64 510 Err_cnt uint64 511} 512 513type CryptoStatRNG struct { 514 Type [64]uint8 515 Generate_cnt uint64 516 Generate_tlen uint64 517 Seed_cnt uint64 518 Err_cnt uint64 519} 520 521type CryptoStatLarval struct { 522 Type [64]uint8 523} 524 525type CryptoReportLarval struct { 526 Type [64]uint8 527} 528 529type CryptoReportHash struct { 530 Type [64]uint8 531 Blocksize uint32 532 Digestsize uint32 533} 534 535type CryptoReportCipher struct { 536 Type [64]uint8 537 Blocksize uint32 538 Min_keysize uint32 539 Max_keysize uint32 540} 541 542type CryptoReportBlkCipher struct { 543 Type [64]uint8 544 Geniv [64]uint8 545 Blocksize uint32 546 Min_keysize uint32 547 Max_keysize uint32 548 Ivsize uint32 549} 550 551type CryptoReportAEAD struct { 552 Type [64]uint8 553 Geniv [64]uint8 554 Blocksize uint32 555 Maxauthsize uint32 556 Ivsize uint32 557} 558 559type CryptoReportComp struct { 560 Type [64]uint8 561} 562 563type CryptoReportRNG struct { 564 Type [64]uint8 565 Seedsize uint32 566} 567 568type CryptoReportAKCipher struct { 569 Type [64]uint8 570} 571 572type CryptoReportKPP struct { 573 Type [64]uint8 574} 575 576type CryptoReportAcomp struct { 577 Type [64]uint8 578} 579 580type LoopInfo struct { 581 Number int32 582 Device uint32 583 Inode uint32 584 Rdevice uint32 585 Offset int32 586 Encrypt_type int32 587 Encrypt_key_size int32 588 Flags int32 589 Name [64]uint8 590 Encrypt_key [32]uint8 591 Init [2]uint32 592 Reserved [4]uint8 593} 594 595type TIPCSubscr struct { 596 Seq TIPCServiceRange 597 Timeout uint32 598 Filter uint32 599 Handle [8]uint8 600} 601 602type TIPCSIOCLNReq struct { 603 Peer uint32 604 Id uint32 605 Linkname [68]uint8 606} 607 608type TIPCSIOCNodeIDReq struct { 609 Peer uint32 610 Id [16]uint8 611} 612 613type PPSKInfo struct { 614 Assert_sequence uint32 615 Clear_sequence uint32 616 Assert_tu PPSKTime 617 Clear_tu PPSKTime 618 Current_mode int32 619 _ [4]byte 620} 621 622const ( 623 PPS_GETPARAMS = 0x400470a1 624 PPS_SETPARAMS = 0x800470a2 625 PPS_GETCAP = 0x400470a3 626 PPS_FETCH = 0xc00470a4 627) 628