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