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 ppc64,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} 291 292type cpuMask uint64 293 294const ( 295 _NCPUBITS = 0x40 296) 297 298const ( 299 CBitFieldMaskBit0 = 0x8000000000000000 300 CBitFieldMaskBit1 = 0x4000000000000000 301 CBitFieldMaskBit2 = 0x2000000000000000 302 CBitFieldMaskBit3 = 0x1000000000000000 303 CBitFieldMaskBit4 = 0x800000000000000 304 CBitFieldMaskBit5 = 0x400000000000000 305 CBitFieldMaskBit6 = 0x200000000000000 306 CBitFieldMaskBit7 = 0x100000000000000 307 CBitFieldMaskBit8 = 0x80000000000000 308 CBitFieldMaskBit9 = 0x40000000000000 309 CBitFieldMaskBit10 = 0x20000000000000 310 CBitFieldMaskBit11 = 0x10000000000000 311 CBitFieldMaskBit12 = 0x8000000000000 312 CBitFieldMaskBit13 = 0x4000000000000 313 CBitFieldMaskBit14 = 0x2000000000000 314 CBitFieldMaskBit15 = 0x1000000000000 315 CBitFieldMaskBit16 = 0x800000000000 316 CBitFieldMaskBit17 = 0x400000000000 317 CBitFieldMaskBit18 = 0x200000000000 318 CBitFieldMaskBit19 = 0x100000000000 319 CBitFieldMaskBit20 = 0x80000000000 320 CBitFieldMaskBit21 = 0x40000000000 321 CBitFieldMaskBit22 = 0x20000000000 322 CBitFieldMaskBit23 = 0x10000000000 323 CBitFieldMaskBit24 = 0x8000000000 324 CBitFieldMaskBit25 = 0x4000000000 325 CBitFieldMaskBit26 = 0x2000000000 326 CBitFieldMaskBit27 = 0x1000000000 327 CBitFieldMaskBit28 = 0x800000000 328 CBitFieldMaskBit29 = 0x400000000 329 CBitFieldMaskBit30 = 0x200000000 330 CBitFieldMaskBit31 = 0x100000000 331 CBitFieldMaskBit32 = 0x80000000 332 CBitFieldMaskBit33 = 0x40000000 333 CBitFieldMaskBit34 = 0x20000000 334 CBitFieldMaskBit35 = 0x10000000 335 CBitFieldMaskBit36 = 0x8000000 336 CBitFieldMaskBit37 = 0x4000000 337 CBitFieldMaskBit38 = 0x2000000 338 CBitFieldMaskBit39 = 0x1000000 339 CBitFieldMaskBit40 = 0x800000 340 CBitFieldMaskBit41 = 0x400000 341 CBitFieldMaskBit42 = 0x200000 342 CBitFieldMaskBit43 = 0x100000 343 CBitFieldMaskBit44 = 0x80000 344 CBitFieldMaskBit45 = 0x40000 345 CBitFieldMaskBit46 = 0x20000 346 CBitFieldMaskBit47 = 0x10000 347 CBitFieldMaskBit48 = 0x8000 348 CBitFieldMaskBit49 = 0x4000 349 CBitFieldMaskBit50 = 0x2000 350 CBitFieldMaskBit51 = 0x1000 351 CBitFieldMaskBit52 = 0x800 352 CBitFieldMaskBit53 = 0x400 353 CBitFieldMaskBit54 = 0x200 354 CBitFieldMaskBit55 = 0x100 355 CBitFieldMaskBit56 = 0x80 356 CBitFieldMaskBit57 = 0x40 357 CBitFieldMaskBit58 = 0x20 358 CBitFieldMaskBit59 = 0x10 359 CBitFieldMaskBit60 = 0x8 360 CBitFieldMaskBit61 = 0x4 361 CBitFieldMaskBit62 = 0x2 362 CBitFieldMaskBit63 = 0x1 363) 364 365type SockaddrStorage struct { 366 Family uint16 367 _ [118]uint8 368 _ uint64 369} 370 371type HDGeometry struct { 372 Heads uint8 373 Sectors uint8 374 Cylinders uint16 375 Start uint64 376} 377 378type Statfs_t struct { 379 Type int64 380 Bsize int64 381 Blocks uint64 382 Bfree uint64 383 Bavail uint64 384 Files uint64 385 Ffree uint64 386 Fsid Fsid 387 Namelen int64 388 Frsize int64 389 Flags int64 390 Spare [4]int64 391} 392 393type TpacketHdr struct { 394 Status uint64 395 Len uint32 396 Snaplen uint32 397 Mac uint16 398 Net uint16 399 Sec uint32 400 Usec uint32 401 _ [4]byte 402} 403 404const ( 405 SizeofTpacketHdr = 0x20 406) 407 408type RTCPLLInfo struct { 409 Ctrl int32 410 Value int32 411 Max int32 412 Min int32 413 Posmult int32 414 Negmult int32 415 Clock int64 416} 417 418type BlkpgPartition struct { 419 Start int64 420 Length int64 421 Pno int32 422 Devname [64]uint8 423 Volname [64]uint8 424 _ [4]byte 425} 426 427const ( 428 BLKPG = 0x20001269 429) 430 431type XDPUmemReg struct { 432 Addr uint64 433 Len uint64 434 Size uint32 435 Headroom uint32 436 Flags uint32 437 _ [4]byte 438} 439 440type CryptoUserAlg struct { 441 Name [64]uint8 442 Driver_name [64]uint8 443 Module_name [64]uint8 444 Type uint32 445 Mask uint32 446 Refcnt uint32 447 Flags uint32 448} 449 450type CryptoStatAEAD struct { 451 Type [64]uint8 452 Encrypt_cnt uint64 453 Encrypt_tlen uint64 454 Decrypt_cnt uint64 455 Decrypt_tlen uint64 456 Err_cnt uint64 457} 458 459type CryptoStatAKCipher struct { 460 Type [64]uint8 461 Encrypt_cnt uint64 462 Encrypt_tlen uint64 463 Decrypt_cnt uint64 464 Decrypt_tlen uint64 465 Verify_cnt uint64 466 Sign_cnt uint64 467 Err_cnt uint64 468} 469 470type CryptoStatCipher struct { 471 Type [64]uint8 472 Encrypt_cnt uint64 473 Encrypt_tlen uint64 474 Decrypt_cnt uint64 475 Decrypt_tlen uint64 476 Err_cnt uint64 477} 478 479type CryptoStatCompress struct { 480 Type [64]uint8 481 Compress_cnt uint64 482 Compress_tlen uint64 483 Decompress_cnt uint64 484 Decompress_tlen uint64 485 Err_cnt uint64 486} 487 488type CryptoStatHash struct { 489 Type [64]uint8 490 Hash_cnt uint64 491 Hash_tlen uint64 492 Err_cnt uint64 493} 494 495type CryptoStatKPP struct { 496 Type [64]uint8 497 Setsecret_cnt uint64 498 Generate_public_key_cnt uint64 499 Compute_shared_secret_cnt uint64 500 Err_cnt uint64 501} 502 503type CryptoStatRNG struct { 504 Type [64]uint8 505 Generate_cnt uint64 506 Generate_tlen uint64 507 Seed_cnt uint64 508 Err_cnt uint64 509} 510 511type CryptoStatLarval struct { 512 Type [64]uint8 513} 514 515type CryptoReportLarval struct { 516 Type [64]uint8 517} 518 519type CryptoReportHash struct { 520 Type [64]uint8 521 Blocksize uint32 522 Digestsize uint32 523} 524 525type CryptoReportCipher struct { 526 Type [64]uint8 527 Blocksize uint32 528 Min_keysize uint32 529 Max_keysize uint32 530} 531 532type CryptoReportBlkCipher struct { 533 Type [64]uint8 534 Geniv [64]uint8 535 Blocksize uint32 536 Min_keysize uint32 537 Max_keysize uint32 538 Ivsize uint32 539} 540 541type CryptoReportAEAD struct { 542 Type [64]uint8 543 Geniv [64]uint8 544 Blocksize uint32 545 Maxauthsize uint32 546 Ivsize uint32 547} 548 549type CryptoReportComp struct { 550 Type [64]uint8 551} 552 553type CryptoReportRNG struct { 554 Type [64]uint8 555 Seedsize uint32 556} 557 558type CryptoReportAKCipher struct { 559 Type [64]uint8 560} 561 562type CryptoReportKPP struct { 563 Type [64]uint8 564} 565 566type CryptoReportAcomp struct { 567 Type [64]uint8 568} 569 570type LoopInfo struct { 571 Number int32 572 Device uint64 573 Inode uint64 574 Rdevice uint64 575 Offset int32 576 Encrypt_type int32 577 Encrypt_key_size int32 578 Flags int32 579 Name [64]uint8 580 Encrypt_key [32]uint8 581 Init [2]uint64 582 Reserved [4]uint8 583 _ [4]byte 584} 585 586type TIPCSubscr struct { 587 Seq TIPCServiceRange 588 Timeout uint32 589 Filter uint32 590 Handle [8]uint8 591} 592 593type TIPCSIOCLNReq struct { 594 Peer uint32 595 Id uint32 596 Linkname [68]uint8 597} 598 599type TIPCSIOCNodeIDReq struct { 600 Peer uint32 601 Id [16]uint8 602} 603