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