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