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