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