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