github.com/HACKERALERT/Picocrypt/src/external/sys@v0.0.0-20210609020157-e519952f829f/unix/ztypes_linux_ppc64le.go (about) 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 ppc64le && linux 5 // +build ppc64le,linux 6 7 package unix 8 9 const ( 10 SizeofPtr = 0x8 11 SizeofLong = 0x8 12 ) 13 14 type ( 15 _C_long int64 16 ) 17 18 type Timespec struct { 19 Sec int64 20 Nsec int64 21 } 22 23 type Timeval struct { 24 Sec int64 25 Usec int64 26 } 27 28 type Timex struct { 29 Modes uint32 30 Offset int64 31 Freq int64 32 Maxerror int64 33 Esterror int64 34 Status int32 35 Constant int64 36 Precision int64 37 Tolerance int64 38 Time Timeval 39 Tick int64 40 Ppsfreq int64 41 Jitter int64 42 Shift int32 43 Stabil int64 44 Jitcnt int64 45 Calcnt int64 46 Errcnt int64 47 Stbcnt int64 48 Tai int32 49 _ [44]byte 50 } 51 52 type Time_t int64 53 54 type Tms struct { 55 Utime int64 56 Stime int64 57 Cutime int64 58 Cstime int64 59 } 60 61 type Utimbuf struct { 62 Actime int64 63 Modtime int64 64 } 65 66 type Rusage struct { 67 Utime Timeval 68 Stime Timeval 69 Maxrss int64 70 Ixrss int64 71 Idrss int64 72 Isrss int64 73 Minflt int64 74 Majflt int64 75 Nswap int64 76 Inblock int64 77 Oublock int64 78 Msgsnd int64 79 Msgrcv int64 80 Nsignals int64 81 Nvcsw int64 82 Nivcsw int64 83 } 84 85 type Stat_t struct { 86 Dev uint64 87 Ino uint64 88 Nlink uint64 89 Mode uint32 90 Uid uint32 91 Gid uint32 92 _ int32 93 Rdev uint64 94 Size int64 95 Blksize int64 96 Blocks int64 97 Atim Timespec 98 Mtim Timespec 99 Ctim Timespec 100 _ uint64 101 _ uint64 102 _ uint64 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 Start int64 118 Len int64 119 Pid int32 120 _ [4]byte 121 } 122 123 type DmNameList struct { 124 Dev uint64 125 Next uint32 126 Name [0]byte 127 _ [4]byte 128 } 129 130 const ( 131 FADV_DONTNEED = 0x4 132 FADV_NOREUSE = 0x5 133 ) 134 135 type RawSockaddrNFCLLCP struct { 136 Sa_family uint16 137 Dev_idx uint32 138 Target_idx uint32 139 Nfc_protocol uint32 140 Dsap uint8 141 Ssap uint8 142 Service_name [63]uint8 143 Service_name_len uint64 144 } 145 146 type RawSockaddr struct { 147 Family uint16 148 Data [14]uint8 149 } 150 151 type RawSockaddrAny struct { 152 Addr RawSockaddr 153 Pad [96]uint8 154 } 155 156 type Iovec struct { 157 Base *byte 158 Len uint64 159 } 160 161 type Msghdr struct { 162 Name *byte 163 Namelen uint32 164 Iov *Iovec 165 Iovlen uint64 166 Control *byte 167 Controllen uint64 168 Flags int32 169 _ [4]byte 170 } 171 172 type Cmsghdr struct { 173 Len uint64 174 Level int32 175 Type int32 176 } 177 178 const ( 179 SizeofSockaddrNFCLLCP = 0x60 180 SizeofIovec = 0x10 181 SizeofMsghdr = 0x38 182 SizeofCmsghdr = 0x10 183 ) 184 185 const ( 186 SizeofSockFprog = 0x10 187 ) 188 189 type PtraceRegs struct { 190 Gpr [32]uint64 191 Nip uint64 192 Msr uint64 193 Orig_gpr3 uint64 194 Ctr uint64 195 Link uint64 196 Xer uint64 197 Ccr uint64 198 Softe uint64 199 Trap uint64 200 Dar uint64 201 Dsisr uint64 202 Result uint64 203 } 204 205 type FdSet struct { 206 Bits [16]int64 207 } 208 209 type Sysinfo_t struct { 210 Uptime int64 211 Loads [3]uint64 212 Totalram uint64 213 Freeram uint64 214 Sharedram uint64 215 Bufferram uint64 216 Totalswap uint64 217 Freeswap uint64 218 Procs uint16 219 Pad uint16 220 Totalhigh uint64 221 Freehigh uint64 222 Unit uint32 223 _ [0]uint8 224 _ [4]byte 225 } 226 227 type Ustat_t struct { 228 Tfree int32 229 Tinode uint64 230 Fname [6]uint8 231 Fpack [6]uint8 232 _ [4]byte 233 } 234 235 type EpollEvent struct { 236 Events uint32 237 _ int32 238 Fd int32 239 Pad int32 240 } 241 242 const ( 243 POLLRDHUP = 0x2000 244 ) 245 246 type Sigset_t struct { 247 Val [16]uint64 248 } 249 250 const _C__NSIG = 0x41 251 252 type Termios struct { 253 Iflag uint32 254 Oflag uint32 255 Cflag uint32 256 Lflag uint32 257 Cc [19]uint8 258 Line uint8 259 Ispeed uint32 260 Ospeed uint32 261 } 262 263 type Taskstats struct { 264 Version uint16 265 Ac_exitcode uint32 266 Ac_flag uint8 267 Ac_nice uint8 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 Ac_etime uint64 286 Ac_utime uint64 287 Ac_stime uint64 288 Ac_minflt uint64 289 Ac_majflt uint64 290 Coremem uint64 291 Virtmem uint64 292 Hiwater_rss uint64 293 Hiwater_vm uint64 294 Read_char uint64 295 Write_char uint64 296 Read_syscalls uint64 297 Write_syscalls uint64 298 Read_bytes uint64 299 Write_bytes uint64 300 Cancelled_write_bytes uint64 301 Nvcsw uint64 302 Nivcsw uint64 303 Ac_utimescaled uint64 304 Ac_stimescaled uint64 305 Cpu_scaled_run_real_total uint64 306 Freepages_count uint64 307 Freepages_delay_total uint64 308 Thrashing_count uint64 309 Thrashing_delay_total uint64 310 Ac_btime64 uint64 311 } 312 313 type cpuMask uint64 314 315 const ( 316 _NCPUBITS = 0x40 317 ) 318 319 const ( 320 CBitFieldMaskBit0 = 0x1 321 CBitFieldMaskBit1 = 0x2 322 CBitFieldMaskBit2 = 0x4 323 CBitFieldMaskBit3 = 0x8 324 CBitFieldMaskBit4 = 0x10 325 CBitFieldMaskBit5 = 0x20 326 CBitFieldMaskBit6 = 0x40 327 CBitFieldMaskBit7 = 0x80 328 CBitFieldMaskBit8 = 0x100 329 CBitFieldMaskBit9 = 0x200 330 CBitFieldMaskBit10 = 0x400 331 CBitFieldMaskBit11 = 0x800 332 CBitFieldMaskBit12 = 0x1000 333 CBitFieldMaskBit13 = 0x2000 334 CBitFieldMaskBit14 = 0x4000 335 CBitFieldMaskBit15 = 0x8000 336 CBitFieldMaskBit16 = 0x10000 337 CBitFieldMaskBit17 = 0x20000 338 CBitFieldMaskBit18 = 0x40000 339 CBitFieldMaskBit19 = 0x80000 340 CBitFieldMaskBit20 = 0x100000 341 CBitFieldMaskBit21 = 0x200000 342 CBitFieldMaskBit22 = 0x400000 343 CBitFieldMaskBit23 = 0x800000 344 CBitFieldMaskBit24 = 0x1000000 345 CBitFieldMaskBit25 = 0x2000000 346 CBitFieldMaskBit26 = 0x4000000 347 CBitFieldMaskBit27 = 0x8000000 348 CBitFieldMaskBit28 = 0x10000000 349 CBitFieldMaskBit29 = 0x20000000 350 CBitFieldMaskBit30 = 0x40000000 351 CBitFieldMaskBit31 = 0x80000000 352 CBitFieldMaskBit32 = 0x100000000 353 CBitFieldMaskBit33 = 0x200000000 354 CBitFieldMaskBit34 = 0x400000000 355 CBitFieldMaskBit35 = 0x800000000 356 CBitFieldMaskBit36 = 0x1000000000 357 CBitFieldMaskBit37 = 0x2000000000 358 CBitFieldMaskBit38 = 0x4000000000 359 CBitFieldMaskBit39 = 0x8000000000 360 CBitFieldMaskBit40 = 0x10000000000 361 CBitFieldMaskBit41 = 0x20000000000 362 CBitFieldMaskBit42 = 0x40000000000 363 CBitFieldMaskBit43 = 0x80000000000 364 CBitFieldMaskBit44 = 0x100000000000 365 CBitFieldMaskBit45 = 0x200000000000 366 CBitFieldMaskBit46 = 0x400000000000 367 CBitFieldMaskBit47 = 0x800000000000 368 CBitFieldMaskBit48 = 0x1000000000000 369 CBitFieldMaskBit49 = 0x2000000000000 370 CBitFieldMaskBit50 = 0x4000000000000 371 CBitFieldMaskBit51 = 0x8000000000000 372 CBitFieldMaskBit52 = 0x10000000000000 373 CBitFieldMaskBit53 = 0x20000000000000 374 CBitFieldMaskBit54 = 0x40000000000000 375 CBitFieldMaskBit55 = 0x80000000000000 376 CBitFieldMaskBit56 = 0x100000000000000 377 CBitFieldMaskBit57 = 0x200000000000000 378 CBitFieldMaskBit58 = 0x400000000000000 379 CBitFieldMaskBit59 = 0x800000000000000 380 CBitFieldMaskBit60 = 0x1000000000000000 381 CBitFieldMaskBit61 = 0x2000000000000000 382 CBitFieldMaskBit62 = 0x4000000000000000 383 CBitFieldMaskBit63 = 0x8000000000000000 384 ) 385 386 type SockaddrStorage struct { 387 Family uint16 388 _ [118]uint8 389 _ uint64 390 } 391 392 type HDGeometry struct { 393 Heads uint8 394 Sectors uint8 395 Cylinders uint16 396 Start uint64 397 } 398 399 type Statfs_t struct { 400 Type int64 401 Bsize int64 402 Blocks uint64 403 Bfree uint64 404 Bavail uint64 405 Files uint64 406 Ffree uint64 407 Fsid Fsid 408 Namelen int64 409 Frsize int64 410 Flags int64 411 Spare [4]int64 412 } 413 414 type TpacketHdr struct { 415 Status uint64 416 Len uint32 417 Snaplen uint32 418 Mac uint16 419 Net uint16 420 Sec uint32 421 Usec uint32 422 _ [4]byte 423 } 424 425 const ( 426 SizeofTpacketHdr = 0x20 427 ) 428 429 type RTCPLLInfo struct { 430 Ctrl int32 431 Value int32 432 Max int32 433 Min int32 434 Posmult int32 435 Negmult int32 436 Clock int64 437 } 438 439 type BlkpgPartition struct { 440 Start int64 441 Length int64 442 Pno int32 443 Devname [64]uint8 444 Volname [64]uint8 445 _ [4]byte 446 } 447 448 const ( 449 BLKPG = 0x20001269 450 ) 451 452 type XDPUmemReg struct { 453 Addr uint64 454 Len uint64 455 Size uint32 456 Headroom uint32 457 Flags uint32 458 _ [4]byte 459 } 460 461 type CryptoUserAlg struct { 462 Name [64]uint8 463 Driver_name [64]uint8 464 Module_name [64]uint8 465 Type uint32 466 Mask uint32 467 Refcnt uint32 468 Flags uint32 469 } 470 471 type CryptoStatAEAD struct { 472 Type [64]uint8 473 Encrypt_cnt uint64 474 Encrypt_tlen uint64 475 Decrypt_cnt uint64 476 Decrypt_tlen uint64 477 Err_cnt uint64 478 } 479 480 type CryptoStatAKCipher struct { 481 Type [64]uint8 482 Encrypt_cnt uint64 483 Encrypt_tlen uint64 484 Decrypt_cnt uint64 485 Decrypt_tlen uint64 486 Verify_cnt uint64 487 Sign_cnt uint64 488 Err_cnt uint64 489 } 490 491 type CryptoStatCipher struct { 492 Type [64]uint8 493 Encrypt_cnt uint64 494 Encrypt_tlen uint64 495 Decrypt_cnt uint64 496 Decrypt_tlen uint64 497 Err_cnt uint64 498 } 499 500 type CryptoStatCompress struct { 501 Type [64]uint8 502 Compress_cnt uint64 503 Compress_tlen uint64 504 Decompress_cnt uint64 505 Decompress_tlen uint64 506 Err_cnt uint64 507 } 508 509 type CryptoStatHash struct { 510 Type [64]uint8 511 Hash_cnt uint64 512 Hash_tlen uint64 513 Err_cnt uint64 514 } 515 516 type CryptoStatKPP struct { 517 Type [64]uint8 518 Setsecret_cnt uint64 519 Generate_public_key_cnt uint64 520 Compute_shared_secret_cnt uint64 521 Err_cnt uint64 522 } 523 524 type CryptoStatRNG struct { 525 Type [64]uint8 526 Generate_cnt uint64 527 Generate_tlen uint64 528 Seed_cnt uint64 529 Err_cnt uint64 530 } 531 532 type CryptoStatLarval struct { 533 Type [64]uint8 534 } 535 536 type CryptoReportLarval struct { 537 Type [64]uint8 538 } 539 540 type CryptoReportHash struct { 541 Type [64]uint8 542 Blocksize uint32 543 Digestsize uint32 544 } 545 546 type CryptoReportCipher struct { 547 Type [64]uint8 548 Blocksize uint32 549 Min_keysize uint32 550 Max_keysize uint32 551 } 552 553 type CryptoReportBlkCipher struct { 554 Type [64]uint8 555 Geniv [64]uint8 556 Blocksize uint32 557 Min_keysize uint32 558 Max_keysize uint32 559 Ivsize uint32 560 } 561 562 type CryptoReportAEAD struct { 563 Type [64]uint8 564 Geniv [64]uint8 565 Blocksize uint32 566 Maxauthsize uint32 567 Ivsize uint32 568 } 569 570 type CryptoReportComp struct { 571 Type [64]uint8 572 } 573 574 type CryptoReportRNG struct { 575 Type [64]uint8 576 Seedsize uint32 577 } 578 579 type CryptoReportAKCipher struct { 580 Type [64]uint8 581 } 582 583 type CryptoReportKPP struct { 584 Type [64]uint8 585 } 586 587 type CryptoReportAcomp struct { 588 Type [64]uint8 589 } 590 591 type LoopInfo struct { 592 Number int32 593 Device uint64 594 Inode uint64 595 Rdevice uint64 596 Offset int32 597 Encrypt_type int32 598 Encrypt_key_size int32 599 Flags int32 600 Name [64]uint8 601 Encrypt_key [32]uint8 602 Init [2]uint64 603 Reserved [4]uint8 604 _ [4]byte 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 = 0x400870a1 636 PPS_SETPARAMS = 0x800870a2 637 PPS_GETCAP = 0x400870a3 638 PPS_FETCH = 0xc00870a4 639 )