Matteo Scandolo | a428586 | 2020-12-01 18:10:10 -0800 | [diff] [blame] | 1 | // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go |
| 2 | // Code generated by the command above; see README.md. DO NOT EDIT. |
| 3 | |
| 4 | // +build riscv64,linux |
| 5 | |
| 6 | package unix |
| 7 | |
| 8 | const ( |
| 9 | SizeofPtr = 0x8 |
| 10 | SizeofLong = 0x8 |
| 11 | ) |
| 12 | |
| 13 | type ( |
| 14 | _C_long int64 |
| 15 | ) |
| 16 | |
| 17 | type Timespec struct { |
| 18 | Sec int64 |
| 19 | Nsec int64 |
| 20 | } |
| 21 | |
| 22 | type Timeval struct { |
| 23 | Sec int64 |
| 24 | Usec int64 |
| 25 | } |
| 26 | |
| 27 | type Timex struct { |
| 28 | Modes uint32 |
| 29 | Offset int64 |
| 30 | Freq int64 |
| 31 | Maxerror int64 |
| 32 | Esterror int64 |
| 33 | Status int32 |
| 34 | Constant int64 |
| 35 | Precision int64 |
| 36 | Tolerance int64 |
| 37 | Time Timeval |
| 38 | Tick int64 |
| 39 | Ppsfreq int64 |
| 40 | Jitter int64 |
| 41 | Shift int32 |
| 42 | Stabil int64 |
| 43 | Jitcnt int64 |
| 44 | Calcnt int64 |
| 45 | Errcnt int64 |
| 46 | Stbcnt int64 |
| 47 | Tai int32 |
| 48 | _ [44]byte |
| 49 | } |
| 50 | |
| 51 | type Time_t int64 |
| 52 | |
| 53 | type Tms struct { |
| 54 | Utime int64 |
| 55 | Stime int64 |
| 56 | Cutime int64 |
| 57 | Cstime int64 |
| 58 | } |
| 59 | |
| 60 | type Utimbuf struct { |
| 61 | Actime int64 |
| 62 | Modtime int64 |
| 63 | } |
| 64 | |
| 65 | type Rusage struct { |
| 66 | Utime Timeval |
| 67 | Stime Timeval |
| 68 | Maxrss int64 |
| 69 | Ixrss int64 |
| 70 | Idrss int64 |
| 71 | Isrss int64 |
| 72 | Minflt int64 |
| 73 | Majflt int64 |
| 74 | Nswap int64 |
| 75 | Inblock int64 |
| 76 | Oublock int64 |
| 77 | Msgsnd int64 |
| 78 | Msgrcv int64 |
| 79 | Nsignals int64 |
| 80 | Nvcsw int64 |
| 81 | Nivcsw int64 |
| 82 | } |
| 83 | |
| 84 | type Stat_t struct { |
| 85 | Dev uint64 |
| 86 | Ino uint64 |
| 87 | Mode uint32 |
| 88 | Nlink uint32 |
| 89 | Uid uint32 |
| 90 | Gid uint32 |
| 91 | Rdev uint64 |
| 92 | _ uint64 |
| 93 | Size int64 |
| 94 | Blksize int32 |
| 95 | _ int32 |
| 96 | Blocks int64 |
| 97 | Atim Timespec |
| 98 | Mtim Timespec |
| 99 | Ctim Timespec |
| 100 | _ [2]int32 |
| 101 | } |
| 102 | |
| 103 | type Dirent struct { |
| 104 | Ino uint64 |
| 105 | Off int64 |
| 106 | Reclen uint16 |
| 107 | Type uint8 |
| 108 | Name [256]uint8 |
| 109 | _ [5]byte |
| 110 | } |
| 111 | |
| 112 | type Flock_t struct { |
| 113 | Type int16 |
| 114 | Whence int16 |
| 115 | Start int64 |
| 116 | Len int64 |
| 117 | Pid int32 |
| 118 | _ [4]byte |
| 119 | } |
| 120 | |
| 121 | const ( |
| 122 | FADV_DONTNEED = 0x4 |
| 123 | FADV_NOREUSE = 0x5 |
| 124 | ) |
| 125 | |
| 126 | type RawSockaddr struct { |
| 127 | Family uint16 |
| 128 | Data [14]uint8 |
| 129 | } |
| 130 | |
| 131 | type RawSockaddrAny struct { |
| 132 | Addr RawSockaddr |
| 133 | Pad [96]uint8 |
| 134 | } |
| 135 | |
| 136 | type Iovec struct { |
| 137 | Base *byte |
| 138 | Len uint64 |
| 139 | } |
| 140 | |
| 141 | type Msghdr struct { |
| 142 | Name *byte |
| 143 | Namelen uint32 |
| 144 | Iov *Iovec |
| 145 | Iovlen uint64 |
| 146 | Control *byte |
| 147 | Controllen uint64 |
| 148 | Flags int32 |
| 149 | _ [4]byte |
| 150 | } |
| 151 | |
| 152 | type Cmsghdr struct { |
| 153 | Len uint64 |
| 154 | Level int32 |
| 155 | Type int32 |
| 156 | } |
| 157 | |
| 158 | const ( |
| 159 | SizeofIovec = 0x10 |
| 160 | SizeofMsghdr = 0x38 |
| 161 | SizeofCmsghdr = 0x10 |
| 162 | ) |
| 163 | |
| 164 | const ( |
| 165 | SizeofSockFprog = 0x10 |
| 166 | ) |
| 167 | |
| 168 | type PtraceRegs struct { |
| 169 | Pc uint64 |
| 170 | Ra uint64 |
| 171 | Sp uint64 |
| 172 | Gp uint64 |
| 173 | Tp uint64 |
| 174 | T0 uint64 |
| 175 | T1 uint64 |
| 176 | T2 uint64 |
| 177 | S0 uint64 |
| 178 | S1 uint64 |
| 179 | A0 uint64 |
| 180 | A1 uint64 |
| 181 | A2 uint64 |
| 182 | A3 uint64 |
| 183 | A4 uint64 |
| 184 | A5 uint64 |
| 185 | A6 uint64 |
| 186 | A7 uint64 |
| 187 | S2 uint64 |
| 188 | S3 uint64 |
| 189 | S4 uint64 |
| 190 | S5 uint64 |
| 191 | S6 uint64 |
| 192 | S7 uint64 |
| 193 | S8 uint64 |
| 194 | S9 uint64 |
| 195 | S10 uint64 |
| 196 | S11 uint64 |
| 197 | T3 uint64 |
| 198 | T4 uint64 |
| 199 | T5 uint64 |
| 200 | T6 uint64 |
| 201 | } |
| 202 | |
| 203 | type FdSet struct { |
| 204 | Bits [16]int64 |
| 205 | } |
| 206 | |
| 207 | type 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]uint8 |
| 222 | _ [4]byte |
| 223 | } |
| 224 | |
| 225 | type Ustat_t struct { |
| 226 | Tfree int32 |
| 227 | Tinode uint64 |
| 228 | Fname [6]uint8 |
| 229 | Fpack [6]uint8 |
| 230 | _ [4]byte |
| 231 | } |
| 232 | |
| 233 | type EpollEvent struct { |
| 234 | Events uint32 |
| 235 | _ int32 |
| 236 | Fd int32 |
| 237 | Pad int32 |
| 238 | } |
| 239 | |
| 240 | const ( |
| 241 | POLLRDHUP = 0x2000 |
| 242 | ) |
| 243 | |
| 244 | type Sigset_t struct { |
| 245 | Val [16]uint64 |
| 246 | } |
| 247 | |
| 248 | const _C__NSIG = 0x41 |
| 249 | |
| 250 | type Termios struct { |
| 251 | Iflag uint32 |
| 252 | Oflag uint32 |
| 253 | Cflag uint32 |
| 254 | Lflag uint32 |
| 255 | Line uint8 |
| 256 | Cc [19]uint8 |
| 257 | Ispeed uint32 |
| 258 | Ospeed uint32 |
| 259 | } |
| 260 | |
| 261 | type 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]uint8 |
| 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 | |
| 311 | type cpuMask uint64 |
| 312 | |
| 313 | const ( |
| 314 | _NCPUBITS = 0x40 |
| 315 | ) |
| 316 | |
| 317 | const ( |
| 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 | |
| 384 | type SockaddrStorage struct { |
| 385 | Family uint16 |
| 386 | _ [118]uint8 |
| 387 | _ uint64 |
| 388 | } |
| 389 | |
| 390 | type HDGeometry struct { |
| 391 | Heads uint8 |
| 392 | Sectors uint8 |
| 393 | Cylinders uint16 |
| 394 | Start uint64 |
| 395 | } |
| 396 | |
| 397 | type Statfs_t struct { |
| 398 | Type int64 |
| 399 | Bsize int64 |
| 400 | Blocks uint64 |
| 401 | Bfree uint64 |
| 402 | Bavail uint64 |
| 403 | Files uint64 |
| 404 | Ffree uint64 |
| 405 | Fsid Fsid |
| 406 | Namelen int64 |
| 407 | Frsize int64 |
| 408 | Flags int64 |
| 409 | Spare [4]int64 |
| 410 | } |
| 411 | |
| 412 | type 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 | |
| 423 | const ( |
| 424 | SizeofTpacketHdr = 0x20 |
| 425 | ) |
| 426 | |
| 427 | type 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 | |
| 437 | type BlkpgPartition struct { |
| 438 | Start int64 |
| 439 | Length int64 |
| 440 | Pno int32 |
| 441 | Devname [64]uint8 |
| 442 | Volname [64]uint8 |
| 443 | _ [4]byte |
| 444 | } |
| 445 | |
| 446 | const ( |
| 447 | BLKPG = 0x1269 |
| 448 | ) |
| 449 | |
| 450 | type XDPUmemReg struct { |
| 451 | Addr uint64 |
| 452 | Len uint64 |
| 453 | Size uint32 |
| 454 | Headroom uint32 |
| 455 | Flags uint32 |
| 456 | _ [4]byte |
| 457 | } |
| 458 | |
| 459 | type CryptoUserAlg struct { |
| 460 | Name [64]uint8 |
| 461 | Driver_name [64]uint8 |
| 462 | Module_name [64]uint8 |
| 463 | Type uint32 |
| 464 | Mask uint32 |
| 465 | Refcnt uint32 |
| 466 | Flags uint32 |
| 467 | } |
| 468 | |
| 469 | type CryptoStatAEAD struct { |
| 470 | Type [64]uint8 |
| 471 | Encrypt_cnt uint64 |
| 472 | Encrypt_tlen uint64 |
| 473 | Decrypt_cnt uint64 |
| 474 | Decrypt_tlen uint64 |
| 475 | Err_cnt uint64 |
| 476 | } |
| 477 | |
| 478 | type CryptoStatAKCipher struct { |
| 479 | Type [64]uint8 |
| 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 | |
| 489 | type CryptoStatCipher 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 CryptoStatCompress struct { |
| 499 | Type [64]uint8 |
| 500 | Compress_cnt uint64 |
| 501 | Compress_tlen uint64 |
| 502 | Decompress_cnt uint64 |
| 503 | Decompress_tlen uint64 |
| 504 | Err_cnt uint64 |
| 505 | } |
| 506 | |
| 507 | type CryptoStatHash struct { |
| 508 | Type [64]uint8 |
| 509 | Hash_cnt uint64 |
| 510 | Hash_tlen uint64 |
| 511 | Err_cnt uint64 |
| 512 | } |
| 513 | |
| 514 | type CryptoStatKPP struct { |
| 515 | Type [64]uint8 |
| 516 | Setsecret_cnt uint64 |
| 517 | Generate_public_key_cnt uint64 |
| 518 | Compute_shared_secret_cnt uint64 |
| 519 | Err_cnt uint64 |
| 520 | } |
| 521 | |
| 522 | type CryptoStatRNG struct { |
| 523 | Type [64]uint8 |
| 524 | Generate_cnt uint64 |
| 525 | Generate_tlen uint64 |
| 526 | Seed_cnt uint64 |
| 527 | Err_cnt uint64 |
| 528 | } |
| 529 | |
| 530 | type CryptoStatLarval struct { |
| 531 | Type [64]uint8 |
| 532 | } |
| 533 | |
| 534 | type CryptoReportLarval struct { |
| 535 | Type [64]uint8 |
| 536 | } |
| 537 | |
| 538 | type CryptoReportHash struct { |
| 539 | Type [64]uint8 |
| 540 | Blocksize uint32 |
| 541 | Digestsize uint32 |
| 542 | } |
| 543 | |
| 544 | type CryptoReportCipher struct { |
| 545 | Type [64]uint8 |
| 546 | Blocksize uint32 |
| 547 | Min_keysize uint32 |
| 548 | Max_keysize uint32 |
| 549 | } |
| 550 | |
| 551 | type CryptoReportBlkCipher struct { |
| 552 | Type [64]uint8 |
| 553 | Geniv [64]uint8 |
| 554 | Blocksize uint32 |
| 555 | Min_keysize uint32 |
| 556 | Max_keysize uint32 |
| 557 | Ivsize uint32 |
| 558 | } |
| 559 | |
| 560 | type CryptoReportAEAD struct { |
| 561 | Type [64]uint8 |
| 562 | Geniv [64]uint8 |
| 563 | Blocksize uint32 |
| 564 | Maxauthsize uint32 |
| 565 | Ivsize uint32 |
| 566 | } |
| 567 | |
| 568 | type CryptoReportComp struct { |
| 569 | Type [64]uint8 |
| 570 | } |
| 571 | |
| 572 | type CryptoReportRNG struct { |
| 573 | Type [64]uint8 |
| 574 | Seedsize uint32 |
| 575 | } |
| 576 | |
| 577 | type CryptoReportAKCipher struct { |
| 578 | Type [64]uint8 |
| 579 | } |
| 580 | |
| 581 | type CryptoReportKPP struct { |
| 582 | Type [64]uint8 |
| 583 | } |
| 584 | |
| 585 | type CryptoReportAcomp struct { |
| 586 | Type [64]uint8 |
| 587 | } |
| 588 | |
| 589 | type 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]uint8 |
| 599 | Encrypt_key [32]uint8 |
| 600 | Init [2]uint64 |
| 601 | Reserved [4]uint8 |
| 602 | _ [4]byte |
| 603 | } |
| 604 | |
| 605 | type TIPCSubscr struct { |
| 606 | Seq TIPCServiceRange |
| 607 | Timeout uint32 |
| 608 | Filter uint32 |
| 609 | Handle [8]uint8 |
| 610 | } |
| 611 | |
| 612 | type TIPCSIOCLNReq struct { |
| 613 | Peer uint32 |
| 614 | Id uint32 |
| 615 | Linkname [68]uint8 |
| 616 | } |
| 617 | |
| 618 | type TIPCSIOCNodeIDReq struct { |
| 619 | Peer uint32 |
| 620 | Id [16]uint8 |
| 621 | } |