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