1// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 /build/unix/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 7package unix 8 9const ( 10 SizeofPtr = 0x4 11 SizeofLong = 0x4 12) 13 14type ( 15 _C_long int32 16) 17 18type Timespec struct { 19 Sec int32 20 Nsec int32 21} 22 23type Timeval struct { 24 Sec int32 25 Usec int32 26} 27 28type 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 52type Time_t int32 53 54type Tms struct { 55 Utime int32 56 Stime int32 57 Cutime int32 58 Cstime int32 59} 60 61type Utimbuf struct { 62 Actime int32 63 Modtime int32 64} 65 66type 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 85type 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 104type Dirent struct { 105 Ino uint64 106 Off int64 107 Reclen uint16 108 Type uint8 109 Name [256]int8 110 _ [1]byte 111} 112 113type Flock_t struct { 114 Type int16 115 Whence int16 116 Start int64 117 Len int64 118 Pid int32 119} 120 121type DmNameList struct { 122 Dev uint64 123 Next uint32 124} 125 126const ( 127 FADV_DONTNEED = 0x4 128 FADV_NOREUSE = 0x5 129) 130 131type 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 142type RawSockaddr struct { 143 Family uint16 144 Data [14]int8 145} 146 147type RawSockaddrAny struct { 148 Addr RawSockaddr 149 Pad [96]int8 150} 151 152type Iovec struct { 153 Base *byte 154 Len uint32 155} 156 157type 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 167type Cmsghdr struct { 168 Len uint32 169 Level int32 170 Type int32 171} 172 173type ifreq struct { 174 Ifrn [16]byte 175 Ifru [16]byte 176} 177 178const ( 179 SizeofSockaddrNFCLLCP = 0x58 180 SizeofIovec = 0x8 181 SizeofMsghdr = 0x1c 182 SizeofCmsghdr = 0xc 183) 184 185const ( 186 SizeofSockFprog = 0x8 187) 188 189type PtraceRegs struct { 190 Ebx int32 191 Ecx int32 192 Edx int32 193 Esi int32 194 Edi int32 195 Ebp int32 196 Eax int32 197 Xds int32 198 Xes int32 199 Xfs int32 200 Xgs int32 201 Orig_eax int32 202 Eip int32 203 Xcs int32 204 Eflags int32 205 Esp int32 206 Xss int32 207} 208 209type FdSet struct { 210 Bits [32]int32 211} 212 213type Sysinfo_t struct { 214 Uptime int32 215 Loads [3]uint32 216 Totalram uint32 217 Freeram uint32 218 Sharedram uint32 219 Bufferram uint32 220 Totalswap uint32 221 Freeswap uint32 222 Procs uint16 223 Pad uint16 224 Totalhigh uint32 225 Freehigh uint32 226 Unit uint32 227 _ [8]int8 228} 229 230type Ustat_t struct { 231 Tfree int32 232 Tinode uint32 233 Fname [6]int8 234 Fpack [6]int8 235} 236 237type EpollEvent struct { 238 Events uint32 239 Fd int32 240 Pad int32 241} 242 243const ( 244 POLLRDHUP = 0x2000 245) 246 247type Sigset_t struct { 248 Val [32]uint32 249} 250 251const _C__NSIG = 0x41 252 253type Termios struct { 254 Iflag uint32 255 Oflag uint32 256 Cflag uint32 257 Lflag uint32 258 Line uint8 259 Cc [19]uint8 260 Ispeed uint32 261 Ospeed uint32 262} 263 264type Taskstats struct { 265 Version uint16 266 Ac_exitcode uint32 267 Ac_flag uint8 268 Ac_nice uint8 269 _ [4]byte 270 Cpu_count uint64 271 Cpu_delay_total uint64 272 Blkio_count uint64 273 Blkio_delay_total uint64 274 Swapin_count uint64 275 Swapin_delay_total uint64 276 Cpu_run_real_total uint64 277 Cpu_run_virtual_total uint64 278 Ac_comm [32]int8 279 Ac_sched uint8 280 Ac_pad [3]uint8 281 _ [4]byte 282 Ac_uid uint32 283 Ac_gid uint32 284 Ac_pid uint32 285 Ac_ppid uint32 286 Ac_btime uint32 287 _ [4]byte 288 Ac_etime uint64 289 Ac_utime uint64 290 Ac_stime uint64 291 Ac_minflt uint64 292 Ac_majflt uint64 293 Coremem uint64 294 Virtmem uint64 295 Hiwater_rss uint64 296 Hiwater_vm uint64 297 Read_char uint64 298 Write_char uint64 299 Read_syscalls uint64 300 Write_syscalls uint64 301 Read_bytes uint64 302 Write_bytes uint64 303 Cancelled_write_bytes uint64 304 Nvcsw uint64 305 Nivcsw uint64 306 Ac_utimescaled uint64 307 Ac_stimescaled uint64 308 Cpu_scaled_run_real_total uint64 309 Freepages_count uint64 310 Freepages_delay_total uint64 311 Thrashing_count uint64 312 Thrashing_delay_total uint64 313 Ac_btime64 uint64 314} 315 316type cpuMask uint32 317 318const ( 319 _NCPUBITS = 0x20 320) 321 322const ( 323 CBitFieldMaskBit0 = 0x1 324 CBitFieldMaskBit1 = 0x2 325 CBitFieldMaskBit2 = 0x4 326 CBitFieldMaskBit3 = 0x8 327 CBitFieldMaskBit4 = 0x10 328 CBitFieldMaskBit5 = 0x20 329 CBitFieldMaskBit6 = 0x40 330 CBitFieldMaskBit7 = 0x80 331 CBitFieldMaskBit8 = 0x100 332 CBitFieldMaskBit9 = 0x200 333 CBitFieldMaskBit10 = 0x400 334 CBitFieldMaskBit11 = 0x800 335 CBitFieldMaskBit12 = 0x1000 336 CBitFieldMaskBit13 = 0x2000 337 CBitFieldMaskBit14 = 0x4000 338 CBitFieldMaskBit15 = 0x8000 339 CBitFieldMaskBit16 = 0x10000 340 CBitFieldMaskBit17 = 0x20000 341 CBitFieldMaskBit18 = 0x40000 342 CBitFieldMaskBit19 = 0x80000 343 CBitFieldMaskBit20 = 0x100000 344 CBitFieldMaskBit21 = 0x200000 345 CBitFieldMaskBit22 = 0x400000 346 CBitFieldMaskBit23 = 0x800000 347 CBitFieldMaskBit24 = 0x1000000 348 CBitFieldMaskBit25 = 0x2000000 349 CBitFieldMaskBit26 = 0x4000000 350 CBitFieldMaskBit27 = 0x8000000 351 CBitFieldMaskBit28 = 0x10000000 352 CBitFieldMaskBit29 = 0x20000000 353 CBitFieldMaskBit30 = 0x40000000 354 CBitFieldMaskBit31 = 0x80000000 355 CBitFieldMaskBit32 = 0x100000000 356 CBitFieldMaskBit33 = 0x200000000 357 CBitFieldMaskBit34 = 0x400000000 358 CBitFieldMaskBit35 = 0x800000000 359 CBitFieldMaskBit36 = 0x1000000000 360 CBitFieldMaskBit37 = 0x2000000000 361 CBitFieldMaskBit38 = 0x4000000000 362 CBitFieldMaskBit39 = 0x8000000000 363 CBitFieldMaskBit40 = 0x10000000000 364 CBitFieldMaskBit41 = 0x20000000000 365 CBitFieldMaskBit42 = 0x40000000000 366 CBitFieldMaskBit43 = 0x80000000000 367 CBitFieldMaskBit44 = 0x100000000000 368 CBitFieldMaskBit45 = 0x200000000000 369 CBitFieldMaskBit46 = 0x400000000000 370 CBitFieldMaskBit47 = 0x800000000000 371 CBitFieldMaskBit48 = 0x1000000000000 372 CBitFieldMaskBit49 = 0x2000000000000 373 CBitFieldMaskBit50 = 0x4000000000000 374 CBitFieldMaskBit51 = 0x8000000000000 375 CBitFieldMaskBit52 = 0x10000000000000 376 CBitFieldMaskBit53 = 0x20000000000000 377 CBitFieldMaskBit54 = 0x40000000000000 378 CBitFieldMaskBit55 = 0x80000000000000 379 CBitFieldMaskBit56 = 0x100000000000000 380 CBitFieldMaskBit57 = 0x200000000000000 381 CBitFieldMaskBit58 = 0x400000000000000 382 CBitFieldMaskBit59 = 0x800000000000000 383 CBitFieldMaskBit60 = 0x1000000000000000 384 CBitFieldMaskBit61 = 0x2000000000000000 385 CBitFieldMaskBit62 = 0x4000000000000000 386 CBitFieldMaskBit63 = 0x8000000000000000 387) 388 389type SockaddrStorage struct { 390 Family uint16 391 _ [122]int8 392 _ uint32 393} 394 395type HDGeometry struct { 396 Heads uint8 397 Sectors uint8 398 Cylinders uint16 399 Start uint32 400} 401 402type Statfs_t struct { 403 Type int32 404 Bsize int32 405 Blocks uint64 406 Bfree uint64 407 Bavail uint64 408 Files uint64 409 Ffree uint64 410 Fsid Fsid 411 Namelen int32 412 Frsize int32 413 Flags int32 414 Spare [4]int32 415} 416 417type TpacketHdr struct { 418 Status uint32 419 Len uint32 420 Snaplen uint32 421 Mac uint16 422 Net uint16 423 Sec uint32 424 Usec uint32 425} 426 427const ( 428 SizeofTpacketHdr = 0x18 429) 430 431type RTCPLLInfo struct { 432 Ctrl int32 433 Value int32 434 Max int32 435 Min int32 436 Posmult int32 437 Negmult int32 438 Clock int32 439} 440 441type BlkpgPartition struct { 442 Start int64 443 Length int64 444 Pno int32 445 Devname [64]uint8 446 Volname [64]uint8 447} 448 449const ( 450 BLKPG = 0x1269 451) 452 453type XDPUmemReg struct { 454 Addr uint64 455 Len uint64 456 Size uint32 457 Headroom uint32 458 Flags uint32 459} 460 461type CryptoUserAlg struct { 462 Name [64]int8 463 Driver_name [64]int8 464 Module_name [64]int8 465 Type uint32 466 Mask uint32 467 Refcnt uint32 468 Flags uint32 469} 470 471type CryptoStatAEAD struct { 472 Type [64]int8 473 Encrypt_cnt uint64 474 Encrypt_tlen uint64 475 Decrypt_cnt uint64 476 Decrypt_tlen uint64 477 Err_cnt uint64 478} 479 480type CryptoStatAKCipher struct { 481 Type [64]int8 482 Encrypt_cnt uint64 483 Encrypt_tlen uint64 484 Decrypt_cnt uint64 485 Decrypt_tlen uint64 486 Verify_cnt uint64 487 Sign_cnt uint64 488 Err_cnt uint64 489} 490 491type CryptoStatCipher struct { 492 Type [64]int8 493 Encrypt_cnt uint64 494 Encrypt_tlen uint64 495 Decrypt_cnt uint64 496 Decrypt_tlen uint64 497 Err_cnt uint64 498} 499 500type CryptoStatCompress struct { 501 Type [64]int8 502 Compress_cnt uint64 503 Compress_tlen uint64 504 Decompress_cnt uint64 505 Decompress_tlen uint64 506 Err_cnt uint64 507} 508 509type CryptoStatHash struct { 510 Type [64]int8 511 Hash_cnt uint64 512 Hash_tlen uint64 513 Err_cnt uint64 514} 515 516type CryptoStatKPP struct { 517 Type [64]int8 518 Setsecret_cnt uint64 519 Generate_public_key_cnt uint64 520 Compute_shared_secret_cnt uint64 521 Err_cnt uint64 522} 523 524type CryptoStatRNG struct { 525 Type [64]int8 526 Generate_cnt uint64 527 Generate_tlen uint64 528 Seed_cnt uint64 529 Err_cnt uint64 530} 531 532type CryptoStatLarval struct { 533 Type [64]int8 534} 535 536type CryptoReportLarval struct { 537 Type [64]int8 538} 539 540type CryptoReportHash struct { 541 Type [64]int8 542 Blocksize uint32 543 Digestsize uint32 544} 545 546type CryptoReportCipher struct { 547 Type [64]int8 548 Blocksize uint32 549 Min_keysize uint32 550 Max_keysize uint32 551} 552 553type CryptoReportBlkCipher struct { 554 Type [64]int8 555 Geniv [64]int8 556 Blocksize uint32 557 Min_keysize uint32 558 Max_keysize uint32 559 Ivsize uint32 560} 561 562type CryptoReportAEAD struct { 563 Type [64]int8 564 Geniv [64]int8 565 Blocksize uint32 566 Maxauthsize uint32 567 Ivsize uint32 568} 569 570type CryptoReportComp struct { 571 Type [64]int8 572} 573 574type CryptoReportRNG struct { 575 Type [64]int8 576 Seedsize uint32 577} 578 579type CryptoReportAKCipher struct { 580 Type [64]int8 581} 582 583type CryptoReportKPP struct { 584 Type [64]int8 585} 586 587type CryptoReportAcomp struct { 588 Type [64]int8 589} 590 591type LoopInfo struct { 592 Number int32 593 Device uint16 594 Inode uint32 595 Rdevice uint16 596 Offset int32 597 Encrypt_type int32 598 Encrypt_key_size int32 599 Flags int32 600 Name [64]int8 601 Encrypt_key [32]uint8 602 Init [2]uint32 603 Reserved [4]int8 604} 605 606type TIPCSubscr struct { 607 Seq TIPCServiceRange 608 Timeout uint32 609 Filter uint32 610 Handle [8]int8 611} 612 613type TIPCSIOCLNReq struct { 614 Peer uint32 615 Id uint32 616 Linkname [68]int8 617} 618 619type TIPCSIOCNodeIDReq struct { 620 Peer uint32 621 Id [16]int8 622} 623 624type PPSKInfo struct { 625 Assert_sequence uint32 626 Clear_sequence uint32 627 Assert_tu PPSKTime 628 Clear_tu PPSKTime 629 Current_mode int32 630} 631 632const ( 633 PPS_GETPARAMS = 0x800470a1 634 PPS_SETPARAMS = 0x400470a2 635 PPS_GETCAP = 0x800470a3 636 PPS_FETCH = 0xc00470a4 637) 638 639const ( 640 PIDFD_NONBLOCK = 0x800 641) 642 643type SysvIpcPerm struct { 644 Key int32 645 Uid uint32 646 Gid uint32 647 Cuid uint32 648 Cgid uint32 649 Mode uint16 650 _ [2]uint8 651 Seq uint16 652 _ uint16 653 _ uint32 654 _ uint32 655} 656type SysvShmDesc struct { 657 Perm SysvIpcPerm 658 Segsz uint32 659 Atime uint32 660 Atime_high uint32 661 Dtime uint32 662 Dtime_high uint32 663 Ctime uint32 664 Ctime_high uint32 665 Cpid int32 666 Lpid int32 667 Nattch uint32 668 _ uint32 669 _ uint32 670} 671