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