Elia Battiston | be9edc1 | 2022-03-09 11:35:58 +0100 | [diff] [blame^] | 1 | // cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 /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 386 && linux |
| 5 | // +build 386,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 uint64 |
| 87 | _ uint16 |
| 88 | _ uint32 |
| 89 | Mode uint32 |
| 90 | Nlink uint32 |
| 91 | Uid uint32 |
| 92 | Gid uint32 |
| 93 | Rdev uint64 |
| 94 | _ uint16 |
| 95 | Size int64 |
| 96 | Blksize int32 |
| 97 | Blocks int64 |
| 98 | Atim Timespec |
| 99 | Mtim Timespec |
| 100 | Ctim Timespec |
| 101 | Ino uint64 |
| 102 | } |
| 103 | |
| 104 | type Dirent struct { |
| 105 | Ino uint64 |
| 106 | Off int64 |
| 107 | Reclen uint16 |
| 108 | Type uint8 |
| 109 | Name [256]int8 |
| 110 | _ [1]byte |
| 111 | } |
| 112 | |
| 113 | type Flock_t struct { |
| 114 | Type int16 |
| 115 | Whence int16 |
| 116 | Start int64 |
| 117 | Len int64 |
| 118 | Pid int32 |
| 119 | } |
| 120 | |
| 121 | type DmNameList struct { |
| 122 | Dev uint64 |
| 123 | Next uint32 |
| 124 | } |
| 125 | |
| 126 | const ( |
| 127 | FADV_DONTNEED = 0x4 |
| 128 | FADV_NOREUSE = 0x5 |
| 129 | ) |
| 130 | |
| 131 | type RawSockaddrNFCLLCP struct { |
| 132 | Sa_family uint16 |
| 133 | Dev_idx uint32 |
| 134 | Target_idx uint32 |
| 135 | Nfc_protocol uint32 |
| 136 | Dsap uint8 |
| 137 | Ssap uint8 |
| 138 | Service_name [63]uint8 |
| 139 | Service_name_len uint32 |
| 140 | } |
| 141 | |
| 142 | type RawSockaddr struct { |
| 143 | Family uint16 |
| 144 | Data [14]int8 |
| 145 | } |
| 146 | |
| 147 | type RawSockaddrAny struct { |
| 148 | Addr RawSockaddr |
| 149 | Pad [96]int8 |
| 150 | } |
| 151 | |
| 152 | type Iovec struct { |
| 153 | Base *byte |
| 154 | Len uint32 |
| 155 | } |
| 156 | |
| 157 | type Msghdr struct { |
| 158 | Name *byte |
| 159 | Namelen uint32 |
| 160 | Iov *Iovec |
| 161 | Iovlen uint32 |
| 162 | Control *byte |
| 163 | Controllen uint32 |
| 164 | Flags int32 |
| 165 | } |
| 166 | |
| 167 | type Cmsghdr struct { |
| 168 | Len uint32 |
| 169 | Level int32 |
| 170 | Type int32 |
| 171 | } |
| 172 | |
| 173 | const ( |
| 174 | SizeofSockaddrNFCLLCP = 0x58 |
| 175 | SizeofIovec = 0x8 |
| 176 | SizeofMsghdr = 0x1c |
| 177 | SizeofCmsghdr = 0xc |
| 178 | ) |
| 179 | |
| 180 | const ( |
| 181 | SizeofSockFprog = 0x8 |
| 182 | ) |
| 183 | |
| 184 | type PtraceRegs struct { |
| 185 | Ebx int32 |
| 186 | Ecx int32 |
| 187 | Edx int32 |
| 188 | Esi int32 |
| 189 | Edi int32 |
| 190 | Ebp int32 |
| 191 | Eax int32 |
| 192 | Xds int32 |
| 193 | Xes int32 |
| 194 | Xfs int32 |
| 195 | Xgs int32 |
| 196 | Orig_eax int32 |
| 197 | Eip int32 |
| 198 | Xcs int32 |
| 199 | Eflags int32 |
| 200 | Esp int32 |
| 201 | Xss int32 |
| 202 | } |
| 203 | |
| 204 | type FdSet struct { |
| 205 | Bits [32]int32 |
| 206 | } |
| 207 | |
| 208 | type Sysinfo_t struct { |
| 209 | Uptime int32 |
| 210 | Loads [3]uint32 |
| 211 | Totalram uint32 |
| 212 | Freeram uint32 |
| 213 | Sharedram uint32 |
| 214 | Bufferram uint32 |
| 215 | Totalswap uint32 |
| 216 | Freeswap uint32 |
| 217 | Procs uint16 |
| 218 | Pad uint16 |
| 219 | Totalhigh uint32 |
| 220 | Freehigh uint32 |
| 221 | Unit uint32 |
| 222 | _ [8]int8 |
| 223 | } |
| 224 | |
| 225 | type Ustat_t struct { |
| 226 | Tfree int32 |
| 227 | Tinode uint32 |
| 228 | Fname [6]int8 |
| 229 | Fpack [6]int8 |
| 230 | } |
| 231 | |
| 232 | type EpollEvent struct { |
| 233 | Events uint32 |
| 234 | Fd int32 |
| 235 | Pad int32 |
| 236 | } |
| 237 | |
| 238 | const ( |
| 239 | POLLRDHUP = 0x2000 |
| 240 | ) |
| 241 | |
| 242 | type Sigset_t struct { |
| 243 | Val [32]uint32 |
| 244 | } |
| 245 | |
| 246 | const _C__NSIG = 0x41 |
| 247 | |
| 248 | type Termios struct { |
| 249 | Iflag uint32 |
| 250 | Oflag uint32 |
| 251 | Cflag uint32 |
| 252 | Lflag uint32 |
| 253 | Line uint8 |
| 254 | Cc [19]uint8 |
| 255 | Ispeed uint32 |
| 256 | Ospeed uint32 |
| 257 | } |
| 258 | |
| 259 | type Taskstats struct { |
| 260 | Version uint16 |
| 261 | Ac_exitcode uint32 |
| 262 | Ac_flag uint8 |
| 263 | Ac_nice uint8 |
| 264 | _ [4]byte |
| 265 | Cpu_count uint64 |
| 266 | Cpu_delay_total uint64 |
| 267 | Blkio_count uint64 |
| 268 | Blkio_delay_total uint64 |
| 269 | Swapin_count uint64 |
| 270 | Swapin_delay_total uint64 |
| 271 | Cpu_run_real_total uint64 |
| 272 | Cpu_run_virtual_total uint64 |
| 273 | Ac_comm [32]int8 |
| 274 | Ac_sched uint8 |
| 275 | Ac_pad [3]uint8 |
| 276 | _ [4]byte |
| 277 | Ac_uid uint32 |
| 278 | Ac_gid uint32 |
| 279 | Ac_pid uint32 |
| 280 | Ac_ppid uint32 |
| 281 | Ac_btime uint32 |
| 282 | _ [4]byte |
| 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 uint32 |
| 312 | |
| 313 | const ( |
| 314 | _NCPUBITS = 0x20 |
| 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 | _ [122]int8 |
| 387 | _ uint32 |
| 388 | } |
| 389 | |
| 390 | type HDGeometry struct { |
| 391 | Heads uint8 |
| 392 | Sectors uint8 |
| 393 | Cylinders uint16 |
| 394 | Start uint32 |
| 395 | } |
| 396 | |
| 397 | type Statfs_t struct { |
| 398 | Type int32 |
| 399 | Bsize int32 |
| 400 | Blocks uint64 |
| 401 | Bfree uint64 |
| 402 | Bavail uint64 |
| 403 | Files uint64 |
| 404 | Ffree uint64 |
| 405 | Fsid Fsid |
| 406 | Namelen int32 |
| 407 | Frsize int32 |
| 408 | Flags int32 |
| 409 | Spare [4]int32 |
| 410 | } |
| 411 | |
| 412 | type TpacketHdr struct { |
| 413 | Status uint32 |
| 414 | Len uint32 |
| 415 | Snaplen uint32 |
| 416 | Mac uint16 |
| 417 | Net uint16 |
| 418 | Sec uint32 |
| 419 | Usec uint32 |
| 420 | } |
| 421 | |
| 422 | const ( |
| 423 | SizeofTpacketHdr = 0x18 |
| 424 | ) |
| 425 | |
| 426 | type RTCPLLInfo struct { |
| 427 | Ctrl int32 |
| 428 | Value int32 |
| 429 | Max int32 |
| 430 | Min int32 |
| 431 | Posmult int32 |
| 432 | Negmult int32 |
| 433 | Clock int32 |
| 434 | } |
| 435 | |
| 436 | type BlkpgPartition struct { |
| 437 | Start int64 |
| 438 | Length int64 |
| 439 | Pno int32 |
| 440 | Devname [64]uint8 |
| 441 | Volname [64]uint8 |
| 442 | } |
| 443 | |
| 444 | const ( |
| 445 | BLKPG = 0x1269 |
| 446 | ) |
| 447 | |
| 448 | type XDPUmemReg struct { |
| 449 | Addr uint64 |
| 450 | Len uint64 |
| 451 | Size uint32 |
| 452 | Headroom uint32 |
| 453 | Flags uint32 |
| 454 | } |
| 455 | |
| 456 | type CryptoUserAlg struct { |
| 457 | Name [64]int8 |
| 458 | Driver_name [64]int8 |
| 459 | Module_name [64]int8 |
| 460 | Type uint32 |
| 461 | Mask uint32 |
| 462 | Refcnt uint32 |
| 463 | Flags uint32 |
| 464 | } |
| 465 | |
| 466 | type CryptoStatAEAD struct { |
| 467 | Type [64]int8 |
| 468 | Encrypt_cnt uint64 |
| 469 | Encrypt_tlen uint64 |
| 470 | Decrypt_cnt uint64 |
| 471 | Decrypt_tlen uint64 |
| 472 | Err_cnt uint64 |
| 473 | } |
| 474 | |
| 475 | type CryptoStatAKCipher struct { |
| 476 | Type [64]int8 |
| 477 | Encrypt_cnt uint64 |
| 478 | Encrypt_tlen uint64 |
| 479 | Decrypt_cnt uint64 |
| 480 | Decrypt_tlen uint64 |
| 481 | Verify_cnt uint64 |
| 482 | Sign_cnt uint64 |
| 483 | Err_cnt uint64 |
| 484 | } |
| 485 | |
| 486 | type CryptoStatCipher struct { |
| 487 | Type [64]int8 |
| 488 | Encrypt_cnt uint64 |
| 489 | Encrypt_tlen uint64 |
| 490 | Decrypt_cnt uint64 |
| 491 | Decrypt_tlen uint64 |
| 492 | Err_cnt uint64 |
| 493 | } |
| 494 | |
| 495 | type CryptoStatCompress struct { |
| 496 | Type [64]int8 |
| 497 | Compress_cnt uint64 |
| 498 | Compress_tlen uint64 |
| 499 | Decompress_cnt uint64 |
| 500 | Decompress_tlen uint64 |
| 501 | Err_cnt uint64 |
| 502 | } |
| 503 | |
| 504 | type CryptoStatHash struct { |
| 505 | Type [64]int8 |
| 506 | Hash_cnt uint64 |
| 507 | Hash_tlen uint64 |
| 508 | Err_cnt uint64 |
| 509 | } |
| 510 | |
| 511 | type CryptoStatKPP struct { |
| 512 | Type [64]int8 |
| 513 | Setsecret_cnt uint64 |
| 514 | Generate_public_key_cnt uint64 |
| 515 | Compute_shared_secret_cnt uint64 |
| 516 | Err_cnt uint64 |
| 517 | } |
| 518 | |
| 519 | type CryptoStatRNG struct { |
| 520 | Type [64]int8 |
| 521 | Generate_cnt uint64 |
| 522 | Generate_tlen uint64 |
| 523 | Seed_cnt uint64 |
| 524 | Err_cnt uint64 |
| 525 | } |
| 526 | |
| 527 | type CryptoStatLarval struct { |
| 528 | Type [64]int8 |
| 529 | } |
| 530 | |
| 531 | type CryptoReportLarval struct { |
| 532 | Type [64]int8 |
| 533 | } |
| 534 | |
| 535 | type CryptoReportHash struct { |
| 536 | Type [64]int8 |
| 537 | Blocksize uint32 |
| 538 | Digestsize uint32 |
| 539 | } |
| 540 | |
| 541 | type CryptoReportCipher struct { |
| 542 | Type [64]int8 |
| 543 | Blocksize uint32 |
| 544 | Min_keysize uint32 |
| 545 | Max_keysize uint32 |
| 546 | } |
| 547 | |
| 548 | type CryptoReportBlkCipher struct { |
| 549 | Type [64]int8 |
| 550 | Geniv [64]int8 |
| 551 | Blocksize uint32 |
| 552 | Min_keysize uint32 |
| 553 | Max_keysize uint32 |
| 554 | Ivsize uint32 |
| 555 | } |
| 556 | |
| 557 | type CryptoReportAEAD struct { |
| 558 | Type [64]int8 |
| 559 | Geniv [64]int8 |
| 560 | Blocksize uint32 |
| 561 | Maxauthsize uint32 |
| 562 | Ivsize uint32 |
| 563 | } |
| 564 | |
| 565 | type CryptoReportComp struct { |
| 566 | Type [64]int8 |
| 567 | } |
| 568 | |
| 569 | type CryptoReportRNG struct { |
| 570 | Type [64]int8 |
| 571 | Seedsize uint32 |
| 572 | } |
| 573 | |
| 574 | type CryptoReportAKCipher struct { |
| 575 | Type [64]int8 |
| 576 | } |
| 577 | |
| 578 | type CryptoReportKPP struct { |
| 579 | Type [64]int8 |
| 580 | } |
| 581 | |
| 582 | type CryptoReportAcomp struct { |
| 583 | Type [64]int8 |
| 584 | } |
| 585 | |
| 586 | type LoopInfo struct { |
| 587 | Number int32 |
| 588 | Device uint16 |
| 589 | Inode uint32 |
| 590 | Rdevice uint16 |
| 591 | Offset int32 |
| 592 | Encrypt_type int32 |
| 593 | Encrypt_key_size int32 |
| 594 | Flags int32 |
| 595 | Name [64]int8 |
| 596 | Encrypt_key [32]uint8 |
| 597 | Init [2]uint32 |
| 598 | Reserved [4]int8 |
| 599 | } |
| 600 | |
| 601 | type TIPCSubscr struct { |
| 602 | Seq TIPCServiceRange |
| 603 | Timeout uint32 |
| 604 | Filter uint32 |
| 605 | Handle [8]int8 |
| 606 | } |
| 607 | |
| 608 | type TIPCSIOCLNReq struct { |
| 609 | Peer uint32 |
| 610 | Id uint32 |
| 611 | Linkname [68]int8 |
| 612 | } |
| 613 | |
| 614 | type TIPCSIOCNodeIDReq struct { |
| 615 | Peer uint32 |
| 616 | Id [16]int8 |
| 617 | } |
| 618 | |
| 619 | type PPSKInfo struct { |
| 620 | Assert_sequence uint32 |
| 621 | Clear_sequence uint32 |
| 622 | Assert_tu PPSKTime |
| 623 | Clear_tu PPSKTime |
| 624 | Current_mode int32 |
| 625 | } |
| 626 | |
| 627 | const ( |
| 628 | PPS_GETPARAMS = 0x800470a1 |
| 629 | PPS_SETPARAMS = 0x400470a2 |
| 630 | PPS_GETCAP = 0x800470a3 |
| 631 | PPS_FETCH = 0xc00470a4 |
| 632 | ) |