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