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