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