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