github.com/nibnait/go-learn@v0.0.0-20220227013611-dfa47ea6d2da/src/pkg/mod/golang.org/x/sys@v0.0.0-20210630005230-0f9fa26af87c/unix/ztypes_linux_riscv64.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 riscv64 && linux 5 // +build riscv64,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 uint64 87 Ino uint64 88 Mode uint32 89 Nlink uint32 90 Uid uint32 91 Gid uint32 92 Rdev uint64 93 _ uint64 94 Size int64 95 Blksize int32 96 _ int32 97 Blocks int64 98 Atim Timespec 99 Mtim Timespec 100 Ctim Timespec 101 _ [2]int32 102 } 103 104 type Dirent struct { 105 Ino uint64 106 Off int64 107 Reclen uint16 108 Type uint8 109 Name [256]uint8 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]uint8 148 } 149 150 type RawSockaddrAny struct { 151 Addr RawSockaddr 152 Pad [96]uint8 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 Pc uint64 190 Ra uint64 191 Sp uint64 192 Gp uint64 193 Tp uint64 194 T0 uint64 195 T1 uint64 196 T2 uint64 197 S0 uint64 198 S1 uint64 199 A0 uint64 200 A1 uint64 201 A2 uint64 202 A3 uint64 203 A4 uint64 204 A5 uint64 205 A6 uint64 206 A7 uint64 207 S2 uint64 208 S3 uint64 209 S4 uint64 210 S5 uint64 211 S6 uint64 212 S7 uint64 213 S8 uint64 214 S9 uint64 215 S10 uint64 216 S11 uint64 217 T3 uint64 218 T4 uint64 219 T5 uint64 220 T6 uint64 221 } 222 223 type FdSet struct { 224 Bits [16]int64 225 } 226 227 type Sysinfo_t struct { 228 Uptime int64 229 Loads [3]uint64 230 Totalram uint64 231 Freeram uint64 232 Sharedram uint64 233 Bufferram uint64 234 Totalswap uint64 235 Freeswap uint64 236 Procs uint16 237 Pad uint16 238 Totalhigh uint64 239 Freehigh uint64 240 Unit uint32 241 _ [0]uint8 242 _ [4]byte 243 } 244 245 type Ustat_t struct { 246 Tfree int32 247 Tinode uint64 248 Fname [6]uint8 249 Fpack [6]uint8 250 _ [4]byte 251 } 252 253 type EpollEvent struct { 254 Events uint32 255 _ int32 256 Fd int32 257 Pad int32 258 } 259 260 const ( 261 POLLRDHUP = 0x2000 262 ) 263 264 type Sigset_t struct { 265 Val [16]uint64 266 } 267 268 const _C__NSIG = 0x41 269 270 type Termios struct { 271 Iflag uint32 272 Oflag uint32 273 Cflag uint32 274 Lflag uint32 275 Line uint8 276 Cc [19]uint8 277 Ispeed uint32 278 Ospeed uint32 279 } 280 281 type Taskstats struct { 282 Version uint16 283 Ac_exitcode uint32 284 Ac_flag uint8 285 Ac_nice uint8 286 Cpu_count uint64 287 Cpu_delay_total uint64 288 Blkio_count uint64 289 Blkio_delay_total uint64 290 Swapin_count uint64 291 Swapin_delay_total uint64 292 Cpu_run_real_total uint64 293 Cpu_run_virtual_total uint64 294 Ac_comm [32]uint8 295 Ac_sched uint8 296 Ac_pad [3]uint8 297 _ [4]byte 298 Ac_uid uint32 299 Ac_gid uint32 300 Ac_pid uint32 301 Ac_ppid uint32 302 Ac_btime uint32 303 Ac_etime uint64 304 Ac_utime uint64 305 Ac_stime uint64 306 Ac_minflt uint64 307 Ac_majflt uint64 308 Coremem uint64 309 Virtmem uint64 310 Hiwater_rss uint64 311 Hiwater_vm uint64 312 Read_char uint64 313 Write_char uint64 314 Read_syscalls uint64 315 Write_syscalls uint64 316 Read_bytes uint64 317 Write_bytes uint64 318 Cancelled_write_bytes uint64 319 Nvcsw uint64 320 Nivcsw uint64 321 Ac_utimescaled uint64 322 Ac_stimescaled uint64 323 Cpu_scaled_run_real_total uint64 324 Freepages_count uint64 325 Freepages_delay_total uint64 326 Thrashing_count uint64 327 Thrashing_delay_total uint64 328 Ac_btime64 uint64 329 } 330 331 type cpuMask uint64 332 333 const ( 334 _NCPUBITS = 0x40 335 ) 336 337 const ( 338 CBitFieldMaskBit0 = 0x1 339 CBitFieldMaskBit1 = 0x2 340 CBitFieldMaskBit2 = 0x4 341 CBitFieldMaskBit3 = 0x8 342 CBitFieldMaskBit4 = 0x10 343 CBitFieldMaskBit5 = 0x20 344 CBitFieldMaskBit6 = 0x40 345 CBitFieldMaskBit7 = 0x80 346 CBitFieldMaskBit8 = 0x100 347 CBitFieldMaskBit9 = 0x200 348 CBitFieldMaskBit10 = 0x400 349 CBitFieldMaskBit11 = 0x800 350 CBitFieldMaskBit12 = 0x1000 351 CBitFieldMaskBit13 = 0x2000 352 CBitFieldMaskBit14 = 0x4000 353 CBitFieldMaskBit15 = 0x8000 354 CBitFieldMaskBit16 = 0x10000 355 CBitFieldMaskBit17 = 0x20000 356 CBitFieldMaskBit18 = 0x40000 357 CBitFieldMaskBit19 = 0x80000 358 CBitFieldMaskBit20 = 0x100000 359 CBitFieldMaskBit21 = 0x200000 360 CBitFieldMaskBit22 = 0x400000 361 CBitFieldMaskBit23 = 0x800000 362 CBitFieldMaskBit24 = 0x1000000 363 CBitFieldMaskBit25 = 0x2000000 364 CBitFieldMaskBit26 = 0x4000000 365 CBitFieldMaskBit27 = 0x8000000 366 CBitFieldMaskBit28 = 0x10000000 367 CBitFieldMaskBit29 = 0x20000000 368 CBitFieldMaskBit30 = 0x40000000 369 CBitFieldMaskBit31 = 0x80000000 370 CBitFieldMaskBit32 = 0x100000000 371 CBitFieldMaskBit33 = 0x200000000 372 CBitFieldMaskBit34 = 0x400000000 373 CBitFieldMaskBit35 = 0x800000000 374 CBitFieldMaskBit36 = 0x1000000000 375 CBitFieldMaskBit37 = 0x2000000000 376 CBitFieldMaskBit38 = 0x4000000000 377 CBitFieldMaskBit39 = 0x8000000000 378 CBitFieldMaskBit40 = 0x10000000000 379 CBitFieldMaskBit41 = 0x20000000000 380 CBitFieldMaskBit42 = 0x40000000000 381 CBitFieldMaskBit43 = 0x80000000000 382 CBitFieldMaskBit44 = 0x100000000000 383 CBitFieldMaskBit45 = 0x200000000000 384 CBitFieldMaskBit46 = 0x400000000000 385 CBitFieldMaskBit47 = 0x800000000000 386 CBitFieldMaskBit48 = 0x1000000000000 387 CBitFieldMaskBit49 = 0x2000000000000 388 CBitFieldMaskBit50 = 0x4000000000000 389 CBitFieldMaskBit51 = 0x8000000000000 390 CBitFieldMaskBit52 = 0x10000000000000 391 CBitFieldMaskBit53 = 0x20000000000000 392 CBitFieldMaskBit54 = 0x40000000000000 393 CBitFieldMaskBit55 = 0x80000000000000 394 CBitFieldMaskBit56 = 0x100000000000000 395 CBitFieldMaskBit57 = 0x200000000000000 396 CBitFieldMaskBit58 = 0x400000000000000 397 CBitFieldMaskBit59 = 0x800000000000000 398 CBitFieldMaskBit60 = 0x1000000000000000 399 CBitFieldMaskBit61 = 0x2000000000000000 400 CBitFieldMaskBit62 = 0x4000000000000000 401 CBitFieldMaskBit63 = 0x8000000000000000 402 ) 403 404 type SockaddrStorage struct { 405 Family uint16 406 _ [118]uint8 407 _ uint64 408 } 409 410 type HDGeometry struct { 411 Heads uint8 412 Sectors uint8 413 Cylinders uint16 414 Start uint64 415 } 416 417 type Statfs_t struct { 418 Type int64 419 Bsize int64 420 Blocks uint64 421 Bfree uint64 422 Bavail uint64 423 Files uint64 424 Ffree uint64 425 Fsid Fsid 426 Namelen int64 427 Frsize int64 428 Flags int64 429 Spare [4]int64 430 } 431 432 type TpacketHdr struct { 433 Status uint64 434 Len uint32 435 Snaplen uint32 436 Mac uint16 437 Net uint16 438 Sec uint32 439 Usec uint32 440 _ [4]byte 441 } 442 443 const ( 444 SizeofTpacketHdr = 0x20 445 ) 446 447 type RTCPLLInfo struct { 448 Ctrl int32 449 Value int32 450 Max int32 451 Min int32 452 Posmult int32 453 Negmult int32 454 Clock int64 455 } 456 457 type BlkpgPartition struct { 458 Start int64 459 Length int64 460 Pno int32 461 Devname [64]uint8 462 Volname [64]uint8 463 _ [4]byte 464 } 465 466 const ( 467 BLKPG = 0x1269 468 ) 469 470 type XDPUmemReg struct { 471 Addr uint64 472 Len uint64 473 Size uint32 474 Headroom uint32 475 Flags uint32 476 _ [4]byte 477 } 478 479 type CryptoUserAlg struct { 480 Name [64]uint8 481 Driver_name [64]uint8 482 Module_name [64]uint8 483 Type uint32 484 Mask uint32 485 Refcnt uint32 486 Flags uint32 487 } 488 489 type CryptoStatAEAD struct { 490 Type [64]uint8 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]uint8 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]uint8 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]uint8 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]uint8 529 Hash_cnt uint64 530 Hash_tlen uint64 531 Err_cnt uint64 532 } 533 534 type CryptoStatKPP struct { 535 Type [64]uint8 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]uint8 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]uint8 552 } 553 554 type CryptoReportLarval struct { 555 Type [64]uint8 556 } 557 558 type CryptoReportHash struct { 559 Type [64]uint8 560 Blocksize uint32 561 Digestsize uint32 562 } 563 564 type CryptoReportCipher struct { 565 Type [64]uint8 566 Blocksize uint32 567 Min_keysize uint32 568 Max_keysize uint32 569 } 570 571 type CryptoReportBlkCipher struct { 572 Type [64]uint8 573 Geniv [64]uint8 574 Blocksize uint32 575 Min_keysize uint32 576 Max_keysize uint32 577 Ivsize uint32 578 } 579 580 type CryptoReportAEAD struct { 581 Type [64]uint8 582 Geniv [64]uint8 583 Blocksize uint32 584 Maxauthsize uint32 585 Ivsize uint32 586 } 587 588 type CryptoReportComp struct { 589 Type [64]uint8 590 } 591 592 type CryptoReportRNG struct { 593 Type [64]uint8 594 Seedsize uint32 595 } 596 597 type CryptoReportAKCipher struct { 598 Type [64]uint8 599 } 600 601 type CryptoReportKPP struct { 602 Type [64]uint8 603 } 604 605 type CryptoReportAcomp struct { 606 Type [64]uint8 607 } 608 609 type LoopInfo struct { 610 Number int32 611 Device uint32 612 Inode uint64 613 Rdevice uint32 614 Offset int32 615 Encrypt_type int32 616 Encrypt_key_size int32 617 Flags int32 618 Name [64]uint8 619 Encrypt_key [32]uint8 620 Init [2]uint64 621 Reserved [4]uint8 622 _ [4]byte 623 } 624 625 type TIPCSubscr struct { 626 Seq TIPCServiceRange 627 Timeout uint32 628 Filter uint32 629 Handle [8]uint8 630 } 631 632 type TIPCSIOCLNReq struct { 633 Peer uint32 634 Id uint32 635 Linkname [68]uint8 636 } 637 638 type TIPCSIOCNodeIDReq struct { 639 Peer uint32 640 Id [16]uint8 641 } 642 643 type PPSKInfo struct { 644 Assert_sequence uint32 645 Clear_sequence uint32 646 Assert_tu PPSKTime 647 Clear_tu PPSKTime 648 Current_mode int32 649 _ [4]byte 650 } 651 652 const ( 653 PPS_GETPARAMS = 0x800870a1 654 PPS_SETPARAMS = 0x400870a2 655 PPS_GETCAP = 0x800870a3 656 PPS_FETCH = 0xc00870a4 657 )