From c1c652e1eb2b8640782e11296c7c763dfdfed5c1 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 2 Oct 2024 05:12:39 +0900 Subject: [PATCH] codegen: Cleanup --- .github/.cspell/project-dictionary.txt | 13 + .github/workflows/ci.yml | 18 + .../src/gen/sys/aarch64_apple_darwin/mod.rs | 1 + .../sys/aarch64_apple_darwin/sys_sysctl.rs | 9 +- .../src/gen/sys/aarch64_apple_ios/mod.rs | 1 + .../gen/sys/aarch64_apple_ios/sys_sysctl.rs | 9 +- .../src/gen/sys/aarch64_apple_tvos/mod.rs | 1 + .../gen/sys/aarch64_apple_tvos/sys_sysctl.rs | 9 +- .../src/gen/sys/aarch64_apple_visionos/mod.rs | 1 + .../sys/aarch64_apple_visionos/sys_sysctl.rs | 9 +- .../src/gen/sys/aarch64_apple_watchos/mod.rs | 1 + .../sys/aarch64_apple_watchos/sys_sysctl.rs | 9 +- .../src/gen/sys/aarch64_be_linux_gnu/dlfcn.rs | 14 + .../src/gen/sys/aarch64_be_linux_gnu/elf.rs | 2 + .../linux_headers_asm_hwcap.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 28 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/aarch64_be_linux_gnu/mod.rs | 426 ++++-- .../gen/sys/aarch64_be_linux_gnu/sys_auxv.rs | 2 + .../gen/sys/aarch64_be_linux_gnu/sys_prctl.rs | 10 + .../gen/sys/aarch64_be_linux_gnu/unistd.rs | 10 + .../sys/aarch64_be_linux_gnu_ilp32/dlfcn.rs | 14 + .../gen/sys/aarch64_be_linux_gnu_ilp32/elf.rs | 2 + .../linux_headers_asm_hwcap.rs | 66 +- .../linux_headers_asm_unistd.rs | 61 +- .../linux_headers_linux_auxvec.rs | 28 +- .../linux_headers_linux_prctl.rs | 118 +- .../gen/sys/aarch64_be_linux_gnu_ilp32/mod.rs | 350 ++--- .../aarch64_be_linux_gnu_ilp32/sys_auxv.rs | 2 + .../aarch64_be_linux_gnu_ilp32/sys_prctl.rs | 10 + .../sys/aarch64_be_linux_gnu_ilp32/unistd.rs | 10 + .../{aarch64_armreg.rs => machine_armreg.rs} | 2 + .../src/gen/sys/aarch64_be_netbsd/mod.rs | 16 +- .../gen/sys/aarch64_be_netbsd/sys_syscall.rs | 2 + .../gen/sys/aarch64_be_netbsd/sys_sysctl.rs | 14 +- .../src/gen/sys/aarch64_freebsd/dlfcn.rs | 15 + .../gen/sys/aarch64_freebsd/machine_elf.rs | 14 + .../helper/src/gen/sys/aarch64_freebsd/mod.rs | 41 + .../src/gen/sys/aarch64_freebsd/sys_auxv.rs | 2 + .../gen/sys/aarch64_freebsd/sys_elf_common.rs | 38 + .../gen/sys/aarch64_freebsd/sys_syscall.rs | 2 + .../src/gen/sys/aarch64_freebsd/sys_sysctl.rs | 2 + .../src/gen/sys/aarch64_freebsd/unistd.rs | 2 + .../zircon_system_public_zircon_errors.rs | 2 + .../zircon_system_public_zircon_features.rs | 2 + .../zircon_system_public_zircon_types.rs | 2 + .../src/gen/sys/aarch64_illumos/sys_auxv.rs | 2 + .../sys/aarch64_illumos/sys_auxv_aarch64.rs | 2 + .../gen/sys/aarch64_linux_android/dlfcn.rs | 14 + .../src/gen/sys/aarch64_linux_android/elf.rs | 2 + .../linux_headers_asm_hwcap.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 28 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/aarch64_linux_android/mod.rs | 428 ++++-- .../gen/sys/aarch64_linux_android/sys_auxv.rs | 2 + .../sys/aarch64_linux_android/sys_prctl.rs | 10 + .../sys_system_properties.rs | 2 + .../gen/sys/aarch64_linux_android/unistd.rs | 10 + .../src/gen/sys/aarch64_linux_gnu/dlfcn.rs | 14 + .../src/gen/sys/aarch64_linux_gnu/elf.rs | 2 + .../linux_headers_asm_hwcap.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 28 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/aarch64_linux_gnu/mod.rs | 426 ++++-- .../src/gen/sys/aarch64_linux_gnu/sys_auxv.rs | 2 + .../gen/sys/aarch64_linux_gnu/sys_prctl.rs | 10 + .../src/gen/sys/aarch64_linux_gnu/unistd.rs | 10 + .../gen/sys/aarch64_linux_gnu_ilp32/dlfcn.rs | 14 + .../gen/sys/aarch64_linux_gnu_ilp32/elf.rs | 2 + .../linux_headers_asm_hwcap.rs | 66 +- .../linux_headers_asm_unistd.rs | 61 +- .../linux_headers_linux_auxvec.rs | 28 +- .../linux_headers_linux_prctl.rs | 118 +- .../gen/sys/aarch64_linux_gnu_ilp32/mod.rs | 350 ++--- .../sys/aarch64_linux_gnu_ilp32/sys_auxv.rs | 2 + .../sys/aarch64_linux_gnu_ilp32/sys_prctl.rs | 10 + .../gen/sys/aarch64_linux_gnu_ilp32/unistd.rs | 10 + .../src/gen/sys/aarch64_linux_musl/dlfcn.rs | 14 + .../src/gen/sys/aarch64_linux_musl/elf.rs | 2 + .../linux_headers_asm_hwcap.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 28 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/aarch64_linux_musl/mod.rs | 426 ++++-- .../gen/sys/aarch64_linux_musl/sys_auxv.rs | 2 + .../gen/sys/aarch64_linux_musl/sys_prctl.rs | 10 + .../src/gen/sys/aarch64_linux_musl/unistd.rs | 10 + .../src/gen/sys/aarch64_linux_uclibc/dlfcn.rs | 14 + .../src/gen/sys/aarch64_linux_uclibc/elf.rs | 2 + .../linux_headers_asm_hwcap.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 28 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/aarch64_linux_uclibc/mod.rs | 426 ++++-- .../gen/sys/aarch64_linux_uclibc/sys_auxv.rs | 2 + .../gen/sys/aarch64_linux_uclibc/sys_prctl.rs | 10 + .../gen/sys/aarch64_linux_uclibc/unistd.rs | 10 + .../{aarch64_armreg.rs => machine_armreg.rs} | 2 + .../helper/src/gen/sys/aarch64_netbsd/mod.rs | 16 +- .../src/gen/sys/aarch64_netbsd/sys_syscall.rs | 2 + .../src/gen/sys/aarch64_netbsd/sys_sysctl.rs | 14 +- .../src/gen/sys/aarch64_openbsd/dlfcn.rs | 15 + .../gen/sys/aarch64_openbsd/machine_cpu.rs | 5 + .../gen/sys/aarch64_openbsd/machine_elf.rs | 2 + .../helper/src/gen/sys/aarch64_openbsd/mod.rs | 16 +- .../src/gen/sys/aarch64_openbsd/sys_auxv.rs | 6 + .../src/gen/sys/aarch64_openbsd/sys_sysctl.rs | 2 + .../src/gen/sys/arm64_32_apple_watchos/mod.rs | 1 + .../sys/arm64_32_apple_watchos/sys_sysctl.rs | 9 +- tests/helper/src/gen/sys/mod.rs | 135 +- .../src/gen/sys/powerpc64_freebsd/dlfcn.rs | 15 + .../gen/sys/powerpc64_freebsd/machine_cpu.rs | 2 + .../gen/sys/powerpc64_freebsd/machine_elf.rs | 14 + .../src/gen/sys/powerpc64_freebsd/mod.rs | 45 +- .../src/gen/sys/powerpc64_freebsd/sys_auxv.rs | 2 + .../sys/powerpc64_freebsd/sys_elf_common.rs | 38 + .../gen/sys/powerpc64_freebsd/sys_syscall.rs | 2 + .../gen/sys/powerpc64_freebsd/sys_sysctl.rs | 2 + .../src/gen/sys/powerpc64_freebsd/unistd.rs | 2 + .../src/gen/sys/powerpc64_ibm_aix/mod.rs | 7 + .../src/gen/sys/powerpc64_linux_gnu/dlfcn.rs | 14 + .../src/gen/sys/powerpc64_linux_gnu/elf.rs | 2 + .../linux_headers_asm_cputable.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 40 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/powerpc64_linux_gnu/mod.rs | 332 ++++- .../gen/sys/powerpc64_linux_gnu/sys_auxv.rs | 2 + .../gen/sys/powerpc64_linux_gnu/sys_prctl.rs | 10 + .../src/gen/sys/powerpc64_linux_gnu/unistd.rs | 10 + .../src/gen/sys/powerpc64_linux_musl/dlfcn.rs | 14 + .../src/gen/sys/powerpc64_linux_musl/elf.rs | 2 + .../linux_headers_asm_cputable.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 40 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/powerpc64_linux_musl/mod.rs | 332 ++++- .../gen/sys/powerpc64_linux_musl/sys_auxv.rs | 2 + .../gen/sys/powerpc64_linux_musl/sys_prctl.rs | 10 + .../gen/sys/powerpc64_linux_musl/unistd.rs | 10 + .../src/gen/sys/powerpc64_openbsd/dlfcn.rs | 15 + .../gen/sys/powerpc64_openbsd/machine_cpu.rs | 9 + .../gen/sys/powerpc64_openbsd/machine_elf.rs | 2 + .../src/gen/sys/powerpc64_openbsd/mod.rs | 16 +- .../src/gen/sys/powerpc64_openbsd/sys_auxv.rs | 6 + .../gen/sys/powerpc64_openbsd/sys_sysctl.rs | 2 + .../src/gen/sys/powerpc64le_freebsd/dlfcn.rs | 15 + .../sys/powerpc64le_freebsd/machine_cpu.rs | 2 + .../sys/powerpc64le_freebsd/machine_elf.rs | 14 + .../src/gen/sys/powerpc64le_freebsd/mod.rs | 45 +- .../gen/sys/powerpc64le_freebsd/sys_auxv.rs | 2 + .../sys/powerpc64le_freebsd/sys_elf_common.rs | 38 + .../sys/powerpc64le_freebsd/sys_syscall.rs | 2 + .../gen/sys/powerpc64le_freebsd/sys_sysctl.rs | 2 + .../src/gen/sys/powerpc64le_freebsd/unistd.rs | 2 + .../gen/sys/powerpc64le_linux_gnu/dlfcn.rs | 14 + .../src/gen/sys/powerpc64le_linux_gnu/elf.rs | 2 + .../linux_headers_asm_cputable.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 40 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/powerpc64le_linux_gnu/mod.rs | 332 ++++- .../gen/sys/powerpc64le_linux_gnu/sys_auxv.rs | 2 + .../sys/powerpc64le_linux_gnu/sys_prctl.rs | 10 + .../gen/sys/powerpc64le_linux_gnu/unistd.rs | 10 + .../gen/sys/powerpc64le_linux_musl/dlfcn.rs | 14 + .../src/gen/sys/powerpc64le_linux_musl/elf.rs | 2 + .../linux_headers_asm_cputable.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 40 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/powerpc64le_linux_musl/mod.rs | 332 ++++- .../sys/powerpc64le_linux_musl/sys_auxv.rs | 2 + .../sys/powerpc64le_linux_musl/sys_prctl.rs | 10 + .../gen/sys/powerpc64le_linux_musl/unistd.rs | 10 + .../src/gen/sys/riscv32gc_linux_gnu/dlfcn.rs | 14 + .../src/gen/sys/riscv32gc_linux_gnu/elf.rs | 2 + .../linux_headers_asm_hwcap.rs | 7 + .../linux_headers_asm_hwprobe.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 36 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/riscv32gc_linux_gnu/mod.rs | 391 ++++-- .../gen/sys/riscv32gc_linux_gnu/sys_auxv.rs | 2 + .../sys/riscv32gc_linux_gnu/sys_hwprobe.rs | 24 + .../gen/sys/riscv32gc_linux_gnu/sys_prctl.rs | 10 + .../src/gen/sys/riscv32gc_linux_gnu/unistd.rs | 10 + .../src/gen/sys/riscv32gc_linux_musl/dlfcn.rs | 14 + .../src/gen/sys/riscv32gc_linux_musl/elf.rs | 2 + .../linux_headers_asm_hwcap.rs | 7 + .../linux_headers_asm_hwprobe.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 36 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/riscv32gc_linux_musl/mod.rs | 389 ++++-- .../gen/sys/riscv32gc_linux_musl/sys_auxv.rs | 2 + .../gen/sys/riscv32gc_linux_musl/sys_prctl.rs | 10 + .../gen/sys/riscv32gc_linux_musl/unistd.rs | 10 + .../gen/sys/riscv64_linux_android/dlfcn.rs | 14 + .../src/gen/sys/riscv64_linux_android/elf.rs | 2 + .../linux_headers_asm_hwcap.rs | 7 + .../linux_headers_asm_hwprobe.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 36 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/riscv64_linux_android/mod.rs | 389 ++++-- .../gen/sys/riscv64_linux_android/sys_auxv.rs | 2 + .../sys/riscv64_linux_android/sys_prctl.rs | 10 + .../gen/sys/riscv64_linux_android/unistd.rs | 10 + .../src/gen/sys/riscv64gc_freebsd/dlfcn.rs | 15 + .../src/gen/sys/riscv64gc_freebsd/mod.rs | 39 + .../src/gen/sys/riscv64gc_freebsd/sys_auxv.rs | 2 + .../sys/riscv64gc_freebsd/sys_elf_common.rs | 38 + .../gen/sys/riscv64gc_freebsd/sys_syscall.rs | 2 + .../gen/sys/riscv64gc_freebsd/sys_sysctl.rs | 2 + .../src/gen/sys/riscv64gc_freebsd/unistd.rs | 2 + .../zircon_system_public_zircon_errors.rs | 2 + .../zircon_system_public_zircon_features.rs | 2 + .../zircon_system_public_zircon_types.rs | 2 + .../src/gen/sys/riscv64gc_linux_gnu/dlfcn.rs | 14 + .../src/gen/sys/riscv64gc_linux_gnu/elf.rs | 2 + .../linux_headers_asm_hwcap.rs | 7 + .../linux_headers_asm_hwprobe.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 36 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/riscv64gc_linux_gnu/mod.rs | 391 ++++-- .../gen/sys/riscv64gc_linux_gnu/sys_auxv.rs | 2 + .../sys/riscv64gc_linux_gnu/sys_hwprobe.rs | 24 + .../gen/sys/riscv64gc_linux_gnu/sys_prctl.rs | 10 + .../src/gen/sys/riscv64gc_linux_gnu/unistd.rs | 10 + .../src/gen/sys/riscv64gc_linux_musl/dlfcn.rs | 14 + .../src/gen/sys/riscv64gc_linux_musl/elf.rs | 2 + .../linux_headers_asm_hwcap.rs | 7 + .../linux_headers_asm_hwprobe.rs | 2 + .../linux_headers_asm_unistd.rs | 2 + .../linux_headers_linux_auxvec.rs | 36 + .../linux_headers_linux_prctl.rs | 183 +++ .../src/gen/sys/riscv64gc_linux_musl/mod.rs | 389 ++++-- .../gen/sys/riscv64gc_linux_musl/sys_auxv.rs | 2 + .../gen/sys/riscv64gc_linux_musl/sys_prctl.rs | 10 + .../gen/sys/riscv64gc_linux_musl/unistd.rs | 10 + .../src/gen/sys/riscv64gc_openbsd/dlfcn.rs | 15 + .../gen/sys/riscv64gc_openbsd/machine_cpu.rs | 9 + .../src/gen/sys/riscv64gc_openbsd/mod.rs | 16 +- .../src/gen/sys/riscv64gc_openbsd/sys_auxv.rs | 6 + .../gen/sys/riscv64gc_openbsd/sys_sysctl.rs | 2 + tools/codegen/Cargo.toml | 1 - tools/codegen/patches/linux-gnu.diff | 47 - tools/codegen/src/ffi.rs | 1182 +++++++++++------ tools/codegen/src/file.rs | 17 +- tools/codegen/src/main.rs | 9 +- 255 files changed, 10332 insertions(+), 2291 deletions(-) create mode 100644 tests/helper/src/gen/sys/aarch64_be_linux_gnu/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/aarch64_be_linux_gnu/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/aarch64_be_linux_gnu/unistd.rs create mode 100644 tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/unistd.rs rename tests/helper/src/gen/sys/aarch64_be_netbsd/{aarch64_armreg.rs => machine_armreg.rs} (95%) create mode 100644 tests/helper/src/gen/sys/aarch64_freebsd/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_android/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_android/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_android/unistd.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_gnu/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_gnu/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_gnu/unistd.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/unistd.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_musl/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_musl/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_musl/unistd.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_uclibc/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_uclibc/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/aarch64_linux_uclibc/unistd.rs rename tests/helper/src/gen/sys/aarch64_netbsd/{aarch64_armreg.rs => machine_armreg.rs} (95%) create mode 100644 tests/helper/src/gen/sys/aarch64_openbsd/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/powerpc64_freebsd/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/powerpc64_ibm_aix/mod.rs create mode 100644 tests/helper/src/gen/sys/powerpc64_linux_gnu/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/powerpc64_linux_gnu/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/powerpc64_linux_gnu/unistd.rs create mode 100644 tests/helper/src/gen/sys/powerpc64_linux_musl/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/powerpc64_linux_musl/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/powerpc64_linux_musl/unistd.rs create mode 100644 tests/helper/src/gen/sys/powerpc64_openbsd/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/powerpc64_openbsd/machine_cpu.rs create mode 100644 tests/helper/src/gen/sys/powerpc64le_freebsd/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/powerpc64le_linux_gnu/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/powerpc64le_linux_gnu/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/powerpc64le_linux_gnu/unistd.rs create mode 100644 tests/helper/src/gen/sys/powerpc64le_linux_musl/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/powerpc64le_linux_musl/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/powerpc64le_linux_musl/unistd.rs create mode 100644 tests/helper/src/gen/sys/riscv32gc_linux_gnu/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_asm_hwcap.rs create mode 100644 tests/helper/src/gen/sys/riscv32gc_linux_gnu/sys_hwprobe.rs create mode 100644 tests/helper/src/gen/sys/riscv32gc_linux_gnu/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/riscv32gc_linux_gnu/unistd.rs create mode 100644 tests/helper/src/gen/sys/riscv32gc_linux_musl/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_asm_hwcap.rs create mode 100644 tests/helper/src/gen/sys/riscv32gc_linux_musl/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/riscv32gc_linux_musl/unistd.rs create mode 100644 tests/helper/src/gen/sys/riscv64_linux_android/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_asm_hwcap.rs create mode 100644 tests/helper/src/gen/sys/riscv64_linux_android/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/riscv64_linux_android/unistd.rs create mode 100644 tests/helper/src/gen/sys/riscv64gc_freebsd/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/riscv64gc_linux_gnu/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_asm_hwcap.rs create mode 100644 tests/helper/src/gen/sys/riscv64gc_linux_gnu/sys_hwprobe.rs create mode 100644 tests/helper/src/gen/sys/riscv64gc_linux_gnu/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/riscv64gc_linux_gnu/unistd.rs create mode 100644 tests/helper/src/gen/sys/riscv64gc_linux_musl/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_asm_hwcap.rs create mode 100644 tests/helper/src/gen/sys/riscv64gc_linux_musl/sys_prctl.rs create mode 100644 tests/helper/src/gen/sys/riscv64gc_linux_musl/unistd.rs create mode 100644 tests/helper/src/gen/sys/riscv64gc_openbsd/dlfcn.rs create mode 100644 tests/helper/src/gen/sys/riscv64gc_openbsd/machine_cpu.rs delete mode 100644 tools/codegen/patches/linux-gnu.diff diff --git a/.github/.cspell/project-dictionary.txt b/.github/.cspell/project-dictionary.txt index 50916315..950f5bc1 100644 --- a/.github/.cspell/project-dictionary.txt +++ b/.github/.cspell/project-dictionary.txt @@ -42,17 +42,20 @@ csrsi cxchg cxchgweak DESTDIR +dlfcn dlsym DWCAS ecall elems espup +evbmips exynos fild fistp getauxval getisax getpid +gettext gimli Halfword HWCAP @@ -86,14 +89,20 @@ libpthread libstd libtcl libtest +linaro linkall locgr locgre +loongson lqarx lrcpc lwsync +mabi machdep +macppc +MAXNAME maxu +mbig mfcr mfence mgba @@ -114,6 +123,7 @@ newtype nngrk nostartfiles nostdinc +octeon opensbi osfmk osxsave @@ -124,6 +134,7 @@ prctl prefetcher PRIMASK quadword +quic RAII rcpc reentrancy @@ -131,7 +142,9 @@ revidr richlowe rsbegin rsend +rseq rsil +RTLD sbcs selgr seqlock diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6605dfe3..c8e362ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -714,6 +714,24 @@ jobs: steps: - uses: taiki-e/checkout-action@v1 - uses: taiki-e/github-actions/install-rust@nightly + - run: | + retry() { + for i in {1..10}; do + if "$@"; then + return 0 + else + sleep "${i}" + fi + done + "$@" + } + retry sudo apt-get -o Acquire::Retries=10 -qq update + retry sudo apt-get -o Acquire::Retries=10 -o Dpkg::Use-Pty=0 install -y --no-install-recommends \ + gcc-aarch64-linux-gnu \ + gcc-powerpc64-linux-gnu \ + gcc-powerpc64le-linux-gnu \ + gcc-riscv64-linux-gnu \ + gettext - run: tools/no_atomic.sh - run: tools/gen.sh - id: diff diff --git a/tests/helper/src/gen/sys/aarch64_apple_darwin/mod.rs b/tests/helper/src/gen/sys/aarch64_apple_darwin/mod.rs index b6c6f45b..861fb8dd 100644 --- a/tests/helper/src/gen/sys/aarch64_apple_darwin/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_apple_darwin/mod.rs @@ -5,5 +5,6 @@ #![cfg_attr(rustfmt, rustfmt::skip)] mod sys_sysctl; +pub use sys_sysctl::CTL_MAXNAME; pub use sys_sysctl::sysctlbyname; pub type c_char = i8; diff --git a/tests/helper/src/gen/sys/aarch64_apple_darwin/sys_sysctl.rs b/tests/helper/src/gen/sys/aarch64_apple_darwin/sys_sysctl.rs index adb6abaa..ee017fc1 100644 --- a/tests/helper/src/gen/sys/aarch64_apple_darwin/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/aarch64_apple_darwin/sys_sysctl.rs @@ -3,12 +3,15 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const CTL_MAXNAME: u32 = 12; extern "C" { pub fn sysctlbyname( arg1: *const ::std::os::raw::c_char, arg2: *mut ::core::ffi::c_void, - arg3: *mut usize, - arg4: *mut ::core::ffi::c_void, - arg5: usize, + oldlenp: *mut usize, + arg3: *mut ::core::ffi::c_void, + newlen: usize, ) -> ::std::os::raw::c_int; } diff --git a/tests/helper/src/gen/sys/aarch64_apple_ios/mod.rs b/tests/helper/src/gen/sys/aarch64_apple_ios/mod.rs index b6c6f45b..861fb8dd 100644 --- a/tests/helper/src/gen/sys/aarch64_apple_ios/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_apple_ios/mod.rs @@ -5,5 +5,6 @@ #![cfg_attr(rustfmt, rustfmt::skip)] mod sys_sysctl; +pub use sys_sysctl::CTL_MAXNAME; pub use sys_sysctl::sysctlbyname; pub type c_char = i8; diff --git a/tests/helper/src/gen/sys/aarch64_apple_ios/sys_sysctl.rs b/tests/helper/src/gen/sys/aarch64_apple_ios/sys_sysctl.rs index adb6abaa..ee017fc1 100644 --- a/tests/helper/src/gen/sys/aarch64_apple_ios/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/aarch64_apple_ios/sys_sysctl.rs @@ -3,12 +3,15 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const CTL_MAXNAME: u32 = 12; extern "C" { pub fn sysctlbyname( arg1: *const ::std::os::raw::c_char, arg2: *mut ::core::ffi::c_void, - arg3: *mut usize, - arg4: *mut ::core::ffi::c_void, - arg5: usize, + oldlenp: *mut usize, + arg3: *mut ::core::ffi::c_void, + newlen: usize, ) -> ::std::os::raw::c_int; } diff --git a/tests/helper/src/gen/sys/aarch64_apple_tvos/mod.rs b/tests/helper/src/gen/sys/aarch64_apple_tvos/mod.rs index b6c6f45b..861fb8dd 100644 --- a/tests/helper/src/gen/sys/aarch64_apple_tvos/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_apple_tvos/mod.rs @@ -5,5 +5,6 @@ #![cfg_attr(rustfmt, rustfmt::skip)] mod sys_sysctl; +pub use sys_sysctl::CTL_MAXNAME; pub use sys_sysctl::sysctlbyname; pub type c_char = i8; diff --git a/tests/helper/src/gen/sys/aarch64_apple_tvos/sys_sysctl.rs b/tests/helper/src/gen/sys/aarch64_apple_tvos/sys_sysctl.rs index adb6abaa..ee017fc1 100644 --- a/tests/helper/src/gen/sys/aarch64_apple_tvos/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/aarch64_apple_tvos/sys_sysctl.rs @@ -3,12 +3,15 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const CTL_MAXNAME: u32 = 12; extern "C" { pub fn sysctlbyname( arg1: *const ::std::os::raw::c_char, arg2: *mut ::core::ffi::c_void, - arg3: *mut usize, - arg4: *mut ::core::ffi::c_void, - arg5: usize, + oldlenp: *mut usize, + arg3: *mut ::core::ffi::c_void, + newlen: usize, ) -> ::std::os::raw::c_int; } diff --git a/tests/helper/src/gen/sys/aarch64_apple_visionos/mod.rs b/tests/helper/src/gen/sys/aarch64_apple_visionos/mod.rs index b6c6f45b..861fb8dd 100644 --- a/tests/helper/src/gen/sys/aarch64_apple_visionos/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_apple_visionos/mod.rs @@ -5,5 +5,6 @@ #![cfg_attr(rustfmt, rustfmt::skip)] mod sys_sysctl; +pub use sys_sysctl::CTL_MAXNAME; pub use sys_sysctl::sysctlbyname; pub type c_char = i8; diff --git a/tests/helper/src/gen/sys/aarch64_apple_visionos/sys_sysctl.rs b/tests/helper/src/gen/sys/aarch64_apple_visionos/sys_sysctl.rs index adb6abaa..ee017fc1 100644 --- a/tests/helper/src/gen/sys/aarch64_apple_visionos/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/aarch64_apple_visionos/sys_sysctl.rs @@ -3,12 +3,15 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const CTL_MAXNAME: u32 = 12; extern "C" { pub fn sysctlbyname( arg1: *const ::std::os::raw::c_char, arg2: *mut ::core::ffi::c_void, - arg3: *mut usize, - arg4: *mut ::core::ffi::c_void, - arg5: usize, + oldlenp: *mut usize, + arg3: *mut ::core::ffi::c_void, + newlen: usize, ) -> ::std::os::raw::c_int; } diff --git a/tests/helper/src/gen/sys/aarch64_apple_watchos/mod.rs b/tests/helper/src/gen/sys/aarch64_apple_watchos/mod.rs index b6c6f45b..861fb8dd 100644 --- a/tests/helper/src/gen/sys/aarch64_apple_watchos/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_apple_watchos/mod.rs @@ -5,5 +5,6 @@ #![cfg_attr(rustfmt, rustfmt::skip)] mod sys_sysctl; +pub use sys_sysctl::CTL_MAXNAME; pub use sys_sysctl::sysctlbyname; pub type c_char = i8; diff --git a/tests/helper/src/gen/sys/aarch64_apple_watchos/sys_sysctl.rs b/tests/helper/src/gen/sys/aarch64_apple_watchos/sys_sysctl.rs index adb6abaa..ee017fc1 100644 --- a/tests/helper/src/gen/sys/aarch64_apple_watchos/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/aarch64_apple_watchos/sys_sysctl.rs @@ -3,12 +3,15 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const CTL_MAXNAME: u32 = 12; extern "C" { pub fn sysctlbyname( arg1: *const ::std::os::raw::c_char, arg2: *mut ::core::ffi::c_void, - arg3: *mut usize, - arg4: *mut ::core::ffi::c_void, - arg5: usize, + oldlenp: *mut usize, + arg3: *mut ::core::ffi::c_void, + newlen: usize, ) -> ::std::os::raw::c_int; } diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/dlfcn.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/dlfcn.rs new file mode 100644 index 00000000..0c516f36 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + __handle: *mut ::core::ffi::c_void, + __name: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/elf.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/elf.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_asm_hwcap.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_asm_hwcap.rs index 1473f4ef..3b593c9f 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_asm_hwcap.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_asm_hwcap.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const HWCAP_FP: u32 = 1; pub const HWCAP_ASIMD: u32 = 2; pub const HWCAP_EVTSTRM: u32 = 4; diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_asm_unistd.rs index aa756e7f..3d00edab 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_io_setup: u32 = 0; pub const __NR_io_destroy: u32 = 1; pub const __NR_io_submit: u32 = 2; diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_linux_auxvec.rs index 2b4a98be..da867dd1 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_linux_auxvec.rs @@ -3,7 +3,35 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 2; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/mod.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/mod.rs index bf89e901..ffacccce 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/mod.rs @@ -4,13 +4,103 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_hwcap; +pub use linux_headers_asm_hwcap::HWCAP_FP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMD; +pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; +pub use linux_headers_asm_hwcap::HWCAP_AES; +pub use linux_headers_asm_hwcap::HWCAP_PMULL; +pub use linux_headers_asm_hwcap::HWCAP_SHA1; +pub use linux_headers_asm_hwcap::HWCAP_SHA2; +pub use linux_headers_asm_hwcap::HWCAP_CRC32; +pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; +pub use linux_headers_asm_hwcap::HWCAP_FPHP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; +pub use linux_headers_asm_hwcap::HWCAP_CPUID; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; +pub use linux_headers_asm_hwcap::HWCAP_JSCVT; +pub use linux_headers_asm_hwcap::HWCAP_FCMA; +pub use linux_headers_asm_hwcap::HWCAP_LRCPC; +pub use linux_headers_asm_hwcap::HWCAP_DCPOP; +pub use linux_headers_asm_hwcap::HWCAP_SHA3; +pub use linux_headers_asm_hwcap::HWCAP_SM3; +pub use linux_headers_asm_hwcap::HWCAP_SM4; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; +pub use linux_headers_asm_hwcap::HWCAP_SHA512; +pub use linux_headers_asm_hwcap::HWCAP_SVE; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; +pub use linux_headers_asm_hwcap::HWCAP_DIT; +pub use linux_headers_asm_hwcap::HWCAP_USCAT; +pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; +pub use linux_headers_asm_hwcap::HWCAP_FLAGM; +pub use linux_headers_asm_hwcap::HWCAP_SSBS; +pub use linux_headers_asm_hwcap::HWCAP_SB; +pub use linux_headers_asm_hwcap::HWCAP_PACA; +pub use linux_headers_asm_hwcap::HWCAP_PACG; +pub use linux_headers_asm_hwcap::HWCAP2_DCPODP; +pub use linux_headers_asm_hwcap::HWCAP2_SVE2; +pub use linux_headers_asm_hwcap::HWCAP2_SVEAES; +pub use linux_headers_asm_hwcap::HWCAP2_SVEPMULL; +pub use linux_headers_asm_hwcap::HWCAP2_SVEBITPERM; +pub use linux_headers_asm_hwcap::HWCAP2_SVESHA3; +pub use linux_headers_asm_hwcap::HWCAP2_SVESM4; +pub use linux_headers_asm_hwcap::HWCAP2_FLAGM2; +pub use linux_headers_asm_hwcap::HWCAP2_FRINT; +pub use linux_headers_asm_hwcap::HWCAP2_SVEI8MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEF32MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEF64MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEBF16; +pub use linux_headers_asm_hwcap::HWCAP2_I8MM; +pub use linux_headers_asm_hwcap::HWCAP2_BF16; +pub use linux_headers_asm_hwcap::HWCAP2_DGH; +pub use linux_headers_asm_hwcap::HWCAP2_RNG; +pub use linux_headers_asm_hwcap::HWCAP2_BTI; +pub use linux_headers_asm_hwcap::HWCAP2_MTE; +pub use linux_headers_asm_hwcap::HWCAP2_ECV; +pub use linux_headers_asm_hwcap::HWCAP2_AFP; +pub use linux_headers_asm_hwcap::HWCAP2_RPRES; +pub use linux_headers_asm_hwcap::HWCAP2_MTE3; +pub use linux_headers_asm_hwcap::HWCAP2_SME; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I64; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F64F64; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I8I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_B16F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F32F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_FA64; +pub use linux_headers_asm_hwcap::HWCAP2_WFXT; +pub use linux_headers_asm_hwcap::HWCAP2_EBF16; +pub use linux_headers_asm_hwcap::HWCAP2_SVE_EBF16; +pub use linux_headers_asm_hwcap::HWCAP2_CSSC; +pub use linux_headers_asm_hwcap::HWCAP2_RPRFM; +pub use linux_headers_asm_hwcap::HWCAP2_SVE2P1; +pub use linux_headers_asm_hwcap::HWCAP2_SME2; +pub use linux_headers_asm_hwcap::HWCAP2_SME2P1; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_BI32I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_B16B16; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F16; +pub use linux_headers_asm_hwcap::HWCAP2_MOPS; +pub use linux_headers_asm_hwcap::HWCAP2_HBC; +pub use linux_headers_asm_hwcap::HWCAP2_SVE_B16B16; +pub use linux_headers_asm_hwcap::HWCAP2_LRCPC3; +pub use linux_headers_asm_hwcap::HWCAP2_LSE128; +pub use linux_headers_asm_hwcap::HWCAP2_FPMR; +pub use linux_headers_asm_hwcap::HWCAP2_LUT; +pub use linux_headers_asm_hwcap::HWCAP2_FAMINMAX; +pub use linux_headers_asm_hwcap::HWCAP2_F8CVT; +pub use linux_headers_asm_hwcap::HWCAP2_F8FMA; +pub use linux_headers_asm_hwcap::HWCAP2_F8DP4; +pub use linux_headers_asm_hwcap::HWCAP2_F8DP2; +pub use linux_headers_asm_hwcap::HWCAP2_F8E4M3; +pub use linux_headers_asm_hwcap::HWCAP2_F8E5M2; +pub use linux_headers_asm_hwcap::HWCAP2_SME_LUTV2; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F16; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8FMA; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP4; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP2; +pub use linux_headers_asm_hwcap::HWCAP2_POE; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_io_setup; pub use linux_headers_asm_unistd::__NR_io_destroy; @@ -330,106 +420,230 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_hwcap; -pub use linux_headers_asm_hwcap::HWCAP_FP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMD; -pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; -pub use linux_headers_asm_hwcap::HWCAP_AES; -pub use linux_headers_asm_hwcap::HWCAP_PMULL; -pub use linux_headers_asm_hwcap::HWCAP_SHA1; -pub use linux_headers_asm_hwcap::HWCAP_SHA2; -pub use linux_headers_asm_hwcap::HWCAP_CRC32; -pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; -pub use linux_headers_asm_hwcap::HWCAP_FPHP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; -pub use linux_headers_asm_hwcap::HWCAP_CPUID; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; -pub use linux_headers_asm_hwcap::HWCAP_JSCVT; -pub use linux_headers_asm_hwcap::HWCAP_FCMA; -pub use linux_headers_asm_hwcap::HWCAP_LRCPC; -pub use linux_headers_asm_hwcap::HWCAP_DCPOP; -pub use linux_headers_asm_hwcap::HWCAP_SHA3; -pub use linux_headers_asm_hwcap::HWCAP_SM3; -pub use linux_headers_asm_hwcap::HWCAP_SM4; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; -pub use linux_headers_asm_hwcap::HWCAP_SHA512; -pub use linux_headers_asm_hwcap::HWCAP_SVE; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; -pub use linux_headers_asm_hwcap::HWCAP_DIT; -pub use linux_headers_asm_hwcap::HWCAP_USCAT; -pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; -pub use linux_headers_asm_hwcap::HWCAP_FLAGM; -pub use linux_headers_asm_hwcap::HWCAP_SSBS; -pub use linux_headers_asm_hwcap::HWCAP_SB; -pub use linux_headers_asm_hwcap::HWCAP_PACA; -pub use linux_headers_asm_hwcap::HWCAP_PACG; -pub use linux_headers_asm_hwcap::HWCAP2_DCPODP; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2; -pub use linux_headers_asm_hwcap::HWCAP2_SVEAES; -pub use linux_headers_asm_hwcap::HWCAP2_SVEPMULL; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBITPERM; -pub use linux_headers_asm_hwcap::HWCAP2_SVESHA3; -pub use linux_headers_asm_hwcap::HWCAP2_SVESM4; -pub use linux_headers_asm_hwcap::HWCAP2_FLAGM2; -pub use linux_headers_asm_hwcap::HWCAP2_FRINT; -pub use linux_headers_asm_hwcap::HWCAP2_SVEI8MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF32MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF64MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBF16; -pub use linux_headers_asm_hwcap::HWCAP2_I8MM; -pub use linux_headers_asm_hwcap::HWCAP2_BF16; -pub use linux_headers_asm_hwcap::HWCAP2_DGH; -pub use linux_headers_asm_hwcap::HWCAP2_RNG; -pub use linux_headers_asm_hwcap::HWCAP2_BTI; -pub use linux_headers_asm_hwcap::HWCAP2_MTE; -pub use linux_headers_asm_hwcap::HWCAP2_ECV; -pub use linux_headers_asm_hwcap::HWCAP2_AFP; -pub use linux_headers_asm_hwcap::HWCAP2_RPRES; -pub use linux_headers_asm_hwcap::HWCAP2_MTE3; -pub use linux_headers_asm_hwcap::HWCAP2_SME; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F64F64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I8I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F32F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_FA64; -pub use linux_headers_asm_hwcap::HWCAP2_WFXT; -pub use linux_headers_asm_hwcap::HWCAP2_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_CSSC; -pub use linux_headers_asm_hwcap::HWCAP2_RPRFM; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME2; -pub use linux_headers_asm_hwcap::HWCAP2_SME2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_BI32I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F16; -pub use linux_headers_asm_hwcap::HWCAP2_MOPS; -pub use linux_headers_asm_hwcap::HWCAP2_HBC; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_LRCPC3; -pub use linux_headers_asm_hwcap::HWCAP2_LSE128; -pub use linux_headers_asm_hwcap::HWCAP2_FPMR; -pub use linux_headers_asm_hwcap::HWCAP2_LUT; -pub use linux_headers_asm_hwcap::HWCAP2_FAMINMAX; -pub use linux_headers_asm_hwcap::HWCAP2_F8CVT; -pub use linux_headers_asm_hwcap::HWCAP2_F8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_F8E4M3; -pub use linux_headers_asm_hwcap::HWCAP2_F8E5M2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_LUTV2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_POE; -mod sys_auxv; -pub use sys_auxv::getauxval; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/sys_auxv.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/sys_auxv.rs index aeae8561..1fe1c678 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/sys_auxv.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(__type: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/sys_prctl.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/sys_prctl.rs new file mode 100644 index 00000000..2daf3d5a --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(__option: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu/unistd.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/unistd.rs new file mode 100644 index 00000000..eab78d00 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(__sysno: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/dlfcn.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/dlfcn.rs new file mode 100644 index 00000000..0c516f36 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + __handle: *mut ::core::ffi::c_void, + __name: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/elf.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/elf.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_asm_hwcap.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_asm_hwcap.rs index 1473f4ef..15bb533d 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_asm_hwcap.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_asm_hwcap.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const HWCAP_FP: u32 = 1; pub const HWCAP_ASIMD: u32 = 2; pub const HWCAP_EVTSTRM: u32 = 4; @@ -35,67 +37,3 @@ pub const HWCAP_SSBS: u32 = 268435456; pub const HWCAP_SB: u32 = 536870912; pub const HWCAP_PACA: u32 = 1073741824; pub const HWCAP_PACG: u32 = 2147483648; -pub const HWCAP2_DCPODP: u32 = 1; -pub const HWCAP2_SVE2: u32 = 2; -pub const HWCAP2_SVEAES: u32 = 4; -pub const HWCAP2_SVEPMULL: u32 = 8; -pub const HWCAP2_SVEBITPERM: u32 = 16; -pub const HWCAP2_SVESHA3: u32 = 32; -pub const HWCAP2_SVESM4: u32 = 64; -pub const HWCAP2_FLAGM2: u32 = 128; -pub const HWCAP2_FRINT: u32 = 256; -pub const HWCAP2_SVEI8MM: u32 = 512; -pub const HWCAP2_SVEF32MM: u32 = 1024; -pub const HWCAP2_SVEF64MM: u32 = 2048; -pub const HWCAP2_SVEBF16: u32 = 4096; -pub const HWCAP2_I8MM: u32 = 8192; -pub const HWCAP2_BF16: u32 = 16384; -pub const HWCAP2_DGH: u32 = 32768; -pub const HWCAP2_RNG: u32 = 65536; -pub const HWCAP2_BTI: u32 = 131072; -pub const HWCAP2_MTE: u32 = 262144; -pub const HWCAP2_ECV: u32 = 524288; -pub const HWCAP2_AFP: u32 = 1048576; -pub const HWCAP2_RPRES: u32 = 2097152; -pub const HWCAP2_MTE3: u32 = 4194304; -pub const HWCAP2_SME: u32 = 8388608; -pub const HWCAP2_SME_I16I64: u32 = 16777216; -pub const HWCAP2_SME_F64F64: u32 = 33554432; -pub const HWCAP2_SME_I8I32: u32 = 67108864; -pub const HWCAP2_SME_F16F32: u32 = 134217728; -pub const HWCAP2_SME_B16F32: u32 = 268435456; -pub const HWCAP2_SME_F32F32: u32 = 536870912; -pub const HWCAP2_SME_FA64: u32 = 1073741824; -pub const HWCAP2_WFXT: u32 = 2147483648; -pub const HWCAP2_EBF16: u64 = 4294967296; -pub const HWCAP2_SVE_EBF16: u64 = 8589934592; -pub const HWCAP2_CSSC: u64 = 17179869184; -pub const HWCAP2_RPRFM: u64 = 34359738368; -pub const HWCAP2_SVE2P1: u64 = 68719476736; -pub const HWCAP2_SME2: u64 = 137438953472; -pub const HWCAP2_SME2P1: u64 = 274877906944; -pub const HWCAP2_SME_I16I32: u64 = 549755813888; -pub const HWCAP2_SME_BI32I32: u64 = 1099511627776; -pub const HWCAP2_SME_B16B16: u64 = 2199023255552; -pub const HWCAP2_SME_F16F16: u64 = 4398046511104; -pub const HWCAP2_MOPS: u64 = 8796093022208; -pub const HWCAP2_HBC: u64 = 17592186044416; -pub const HWCAP2_SVE_B16B16: u64 = 35184372088832; -pub const HWCAP2_LRCPC3: u64 = 70368744177664; -pub const HWCAP2_LSE128: u64 = 140737488355328; -pub const HWCAP2_FPMR: u64 = 281474976710656; -pub const HWCAP2_LUT: u64 = 562949953421312; -pub const HWCAP2_FAMINMAX: u64 = 1125899906842624; -pub const HWCAP2_F8CVT: u64 = 2251799813685248; -pub const HWCAP2_F8FMA: u64 = 4503599627370496; -pub const HWCAP2_F8DP4: u64 = 9007199254740992; -pub const HWCAP2_F8DP2: u64 = 18014398509481984; -pub const HWCAP2_F8E4M3: u64 = 36028797018963968; -pub const HWCAP2_F8E5M2: u64 = 72057594037927936; -pub const HWCAP2_SME_LUTV2: u64 = 144115188075855872; -pub const HWCAP2_SME_F8F16: u64 = 288230376151711744; -pub const HWCAP2_SME_F8F32: u64 = 576460752303423488; -pub const HWCAP2_SME_SF8FMA: u64 = 1152921504606846976; -pub const HWCAP2_SME_SF8DP4: u64 = 2305843009213693952; -pub const HWCAP2_SME_SF8DP2: u64 = 4611686018427387904; -pub const HWCAP2_POE: u64 = 9223372036854775808; diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_asm_unistd.rs index aa756e7f..d48e9376 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_io_setup: u32 = 0; pub const __NR_io_destroy: u32 = 1; pub const __NR_io_submit: u32 = 2; @@ -28,7 +30,6 @@ pub const __NR_epoll_ctl: u32 = 21; pub const __NR_epoll_pwait: u32 = 22; pub const __NR_dup: u32 = 23; pub const __NR_dup3: u32 = 24; -pub const __NR_fcntl: u32 = 25; pub const __NR_inotify_init1: u32 = 26; pub const __NR_inotify_add_watch: u32 = 27; pub const __NR_inotify_rm_watch: u32 = 28; @@ -46,10 +47,6 @@ pub const __NR_umount2: u32 = 39; pub const __NR_mount: u32 = 40; pub const __NR_pivot_root: u32 = 41; pub const __NR_nfsservctl: u32 = 42; -pub const __NR_statfs: u32 = 43; -pub const __NR_fstatfs: u32 = 44; -pub const __NR_truncate: u32 = 45; -pub const __NR_ftruncate: u32 = 46; pub const __NR_fallocate: u32 = 47; pub const __NR_faccessat: u32 = 48; pub const __NR_chdir: u32 = 49; @@ -65,7 +62,6 @@ pub const __NR_vhangup: u32 = 58; pub const __NR_pipe2: u32 = 59; pub const __NR_quotactl: u32 = 60; pub const __NR_getdents64: u32 = 61; -pub const __NR_lseek: u32 = 62; pub const __NR_read: u32 = 63; pub const __NR_write: u32 = 64; pub const __NR_readv: u32 = 65; @@ -74,7 +70,6 @@ pub const __NR_pread64: u32 = 67; pub const __NR_pwrite64: u32 = 68; pub const __NR_preadv: u32 = 69; pub const __NR_pwritev: u32 = 70; -pub const __NR_sendfile: u32 = 71; pub const __NR_pselect6: u32 = 72; pub const __NR_ppoll: u32 = 73; pub const __NR_signalfd4: u32 = 74; @@ -82,8 +77,6 @@ pub const __NR_vmsplice: u32 = 75; pub const __NR_splice: u32 = 76; pub const __NR_tee: u32 = 77; pub const __NR_readlinkat: u32 = 78; -pub const __NR_newfstatat: u32 = 79; -pub const __NR_fstat: u32 = 80; pub const __NR_sync: u32 = 81; pub const __NR_fsync: u32 = 82; pub const __NR_fdatasync: u32 = 83; @@ -225,8 +218,6 @@ pub const __NR_request_key: u32 = 218; pub const __NR_keyctl: u32 = 219; pub const __NR_clone: u32 = 220; pub const __NR_execve: u32 = 221; -pub const __NR_mmap: u32 = 222; -pub const __NR_fadvise64: u32 = 223; pub const __NR_swapon: u32 = 224; pub const __NR_swapoff: u32 = 225; pub const __NR_mprotect: u32 = 226; @@ -247,6 +238,7 @@ pub const __NR_rt_tgsigqueueinfo: u32 = 240; pub const __NR_perf_event_open: u32 = 241; pub const __NR_accept4: u32 = 242; pub const __NR_recvmmsg: u32 = 243; +pub const __NR_arch_specific_syscall: u32 = 244; pub const __NR_wait4: u32 = 260; pub const __NR_prlimit64: u32 = 261; pub const __NR_fanotify_init: u32 = 262; @@ -286,38 +278,15 @@ pub const __NR_pidfd_send_signal: u32 = 424; pub const __NR_io_uring_setup: u32 = 425; pub const __NR_io_uring_enter: u32 = 426; pub const __NR_io_uring_register: u32 = 427; -pub const __NR_open_tree: u32 = 428; -pub const __NR_move_mount: u32 = 429; -pub const __NR_fsopen: u32 = 430; -pub const __NR_fsconfig: u32 = 431; -pub const __NR_fsmount: u32 = 432; -pub const __NR_fspick: u32 = 433; -pub const __NR_pidfd_open: u32 = 434; -pub const __NR_clone3: u32 = 435; -pub const __NR_close_range: u32 = 436; -pub const __NR_openat2: u32 = 437; -pub const __NR_pidfd_getfd: u32 = 438; -pub const __NR_faccessat2: u32 = 439; -pub const __NR_process_madvise: u32 = 440; -pub const __NR_epoll_pwait2: u32 = 441; -pub const __NR_mount_setattr: u32 = 442; -pub const __NR_quotactl_fd: u32 = 443; -pub const __NR_landlock_create_ruleset: u32 = 444; -pub const __NR_landlock_add_rule: u32 = 445; -pub const __NR_landlock_restrict_self: u32 = 446; -pub const __NR_memfd_secret: u32 = 447; -pub const __NR_process_mrelease: u32 = 448; -pub const __NR_futex_waitv: u32 = 449; -pub const __NR_set_mempolicy_home_node: u32 = 450; -pub const __NR_cachestat: u32 = 451; -pub const __NR_fchmodat2: u32 = 452; -pub const __NR_map_shadow_stack: u32 = 453; -pub const __NR_futex_wake: u32 = 454; -pub const __NR_futex_wait: u32 = 455; -pub const __NR_futex_requeue: u32 = 456; -pub const __NR_statmount: u32 = 457; -pub const __NR_listmount: u32 = 458; -pub const __NR_lsm_get_self_attr: u32 = 459; -pub const __NR_lsm_set_self_attr: u32 = 460; -pub const __NR_lsm_list_modules: u32 = 461; -pub const __NR_mseal: u32 = 462; +pub const __NR_syscalls: u32 = 428; +pub const __NR_fcntl: u32 = 25; +pub const __NR_statfs: u32 = 43; +pub const __NR_fstatfs: u32 = 44; +pub const __NR_truncate: u32 = 45; +pub const __NR_ftruncate: u32 = 46; +pub const __NR_lseek: u32 = 62; +pub const __NR_sendfile: u32 = 71; +pub const __NR_newfstatat: u32 = 79; +pub const __NR_fstat: u32 = 80; +pub const __NR_mmap: u32 = 222; +pub const __NR_fadvise64: u32 = 223; diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_linux_auxvec.rs index 2b4a98be..2caf1af2 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_linux_auxvec.rs @@ -3,7 +3,31 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 2; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; -pub const AT_HWCAP3: u32 = 29; -pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_linux_prctl.rs index 0d4c45c6..bbf22b39 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/linux_headers_linux_prctl.rs @@ -3,4 +3,120 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. -pub const PR_GET_AUXV: u32 = 1096112214; +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/mod.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/mod.rs index bf89e901..67a0664b 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/mod.rs @@ -4,13 +4,39 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_hwcap; +pub use linux_headers_asm_hwcap::HWCAP_FP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMD; +pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; +pub use linux_headers_asm_hwcap::HWCAP_AES; +pub use linux_headers_asm_hwcap::HWCAP_PMULL; +pub use linux_headers_asm_hwcap::HWCAP_SHA1; +pub use linux_headers_asm_hwcap::HWCAP_SHA2; +pub use linux_headers_asm_hwcap::HWCAP_CRC32; +pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; +pub use linux_headers_asm_hwcap::HWCAP_FPHP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; +pub use linux_headers_asm_hwcap::HWCAP_CPUID; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; +pub use linux_headers_asm_hwcap::HWCAP_JSCVT; +pub use linux_headers_asm_hwcap::HWCAP_FCMA; +pub use linux_headers_asm_hwcap::HWCAP_LRCPC; +pub use linux_headers_asm_hwcap::HWCAP_DCPOP; +pub use linux_headers_asm_hwcap::HWCAP_SHA3; +pub use linux_headers_asm_hwcap::HWCAP_SM3; +pub use linux_headers_asm_hwcap::HWCAP_SM4; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; +pub use linux_headers_asm_hwcap::HWCAP_SHA512; +pub use linux_headers_asm_hwcap::HWCAP_SVE; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; +pub use linux_headers_asm_hwcap::HWCAP_DIT; +pub use linux_headers_asm_hwcap::HWCAP_USCAT; +pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; +pub use linux_headers_asm_hwcap::HWCAP_FLAGM; +pub use linux_headers_asm_hwcap::HWCAP_SSBS; +pub use linux_headers_asm_hwcap::HWCAP_SB; +pub use linux_headers_asm_hwcap::HWCAP_PACA; +pub use linux_headers_asm_hwcap::HWCAP_PACG; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_io_setup; pub use linux_headers_asm_unistd::__NR_io_destroy; @@ -37,7 +63,6 @@ pub use linux_headers_asm_unistd::__NR_epoll_ctl; pub use linux_headers_asm_unistd::__NR_epoll_pwait; pub use linux_headers_asm_unistd::__NR_dup; pub use linux_headers_asm_unistd::__NR_dup3; -pub use linux_headers_asm_unistd::__NR_fcntl; pub use linux_headers_asm_unistd::__NR_inotify_init1; pub use linux_headers_asm_unistd::__NR_inotify_add_watch; pub use linux_headers_asm_unistd::__NR_inotify_rm_watch; @@ -55,10 +80,6 @@ pub use linux_headers_asm_unistd::__NR_umount2; pub use linux_headers_asm_unistd::__NR_mount; pub use linux_headers_asm_unistd::__NR_pivot_root; pub use linux_headers_asm_unistd::__NR_nfsservctl; -pub use linux_headers_asm_unistd::__NR_statfs; -pub use linux_headers_asm_unistd::__NR_fstatfs; -pub use linux_headers_asm_unistd::__NR_truncate; -pub use linux_headers_asm_unistd::__NR_ftruncate; pub use linux_headers_asm_unistd::__NR_fallocate; pub use linux_headers_asm_unistd::__NR_faccessat; pub use linux_headers_asm_unistd::__NR_chdir; @@ -74,7 +95,6 @@ pub use linux_headers_asm_unistd::__NR_vhangup; pub use linux_headers_asm_unistd::__NR_pipe2; pub use linux_headers_asm_unistd::__NR_quotactl; pub use linux_headers_asm_unistd::__NR_getdents64; -pub use linux_headers_asm_unistd::__NR_lseek; pub use linux_headers_asm_unistd::__NR_read; pub use linux_headers_asm_unistd::__NR_write; pub use linux_headers_asm_unistd::__NR_readv; @@ -83,7 +103,6 @@ pub use linux_headers_asm_unistd::__NR_pread64; pub use linux_headers_asm_unistd::__NR_pwrite64; pub use linux_headers_asm_unistd::__NR_preadv; pub use linux_headers_asm_unistd::__NR_pwritev; -pub use linux_headers_asm_unistd::__NR_sendfile; pub use linux_headers_asm_unistd::__NR_pselect6; pub use linux_headers_asm_unistd::__NR_ppoll; pub use linux_headers_asm_unistd::__NR_signalfd4; @@ -91,8 +110,6 @@ pub use linux_headers_asm_unistd::__NR_vmsplice; pub use linux_headers_asm_unistd::__NR_splice; pub use linux_headers_asm_unistd::__NR_tee; pub use linux_headers_asm_unistd::__NR_readlinkat; -pub use linux_headers_asm_unistd::__NR_newfstatat; -pub use linux_headers_asm_unistd::__NR_fstat; pub use linux_headers_asm_unistd::__NR_sync; pub use linux_headers_asm_unistd::__NR_fsync; pub use linux_headers_asm_unistd::__NR_fdatasync; @@ -234,8 +251,6 @@ pub use linux_headers_asm_unistd::__NR_request_key; pub use linux_headers_asm_unistd::__NR_keyctl; pub use linux_headers_asm_unistd::__NR_clone; pub use linux_headers_asm_unistd::__NR_execve; -pub use linux_headers_asm_unistd::__NR_mmap; -pub use linux_headers_asm_unistd::__NR_fadvise64; pub use linux_headers_asm_unistd::__NR_swapon; pub use linux_headers_asm_unistd::__NR_swapoff; pub use linux_headers_asm_unistd::__NR_mprotect; @@ -256,6 +271,7 @@ pub use linux_headers_asm_unistd::__NR_rt_tgsigqueueinfo; pub use linux_headers_asm_unistd::__NR_perf_event_open; pub use linux_headers_asm_unistd::__NR_accept4; pub use linux_headers_asm_unistd::__NR_recvmmsg; +pub use linux_headers_asm_unistd::__NR_arch_specific_syscall; pub use linux_headers_asm_unistd::__NR_wait4; pub use linux_headers_asm_unistd::__NR_prlimit64; pub use linux_headers_asm_unistd::__NR_fanotify_init; @@ -295,141 +311,171 @@ pub use linux_headers_asm_unistd::__NR_pidfd_send_signal; pub use linux_headers_asm_unistd::__NR_io_uring_setup; pub use linux_headers_asm_unistd::__NR_io_uring_enter; pub use linux_headers_asm_unistd::__NR_io_uring_register; -pub use linux_headers_asm_unistd::__NR_open_tree; -pub use linux_headers_asm_unistd::__NR_move_mount; -pub use linux_headers_asm_unistd::__NR_fsopen; -pub use linux_headers_asm_unistd::__NR_fsconfig; -pub use linux_headers_asm_unistd::__NR_fsmount; -pub use linux_headers_asm_unistd::__NR_fspick; -pub use linux_headers_asm_unistd::__NR_pidfd_open; -pub use linux_headers_asm_unistd::__NR_clone3; -pub use linux_headers_asm_unistd::__NR_close_range; -pub use linux_headers_asm_unistd::__NR_openat2; -pub use linux_headers_asm_unistd::__NR_pidfd_getfd; -pub use linux_headers_asm_unistd::__NR_faccessat2; -pub use linux_headers_asm_unistd::__NR_process_madvise; -pub use linux_headers_asm_unistd::__NR_epoll_pwait2; -pub use linux_headers_asm_unistd::__NR_mount_setattr; -pub use linux_headers_asm_unistd::__NR_quotactl_fd; -pub use linux_headers_asm_unistd::__NR_landlock_create_ruleset; -pub use linux_headers_asm_unistd::__NR_landlock_add_rule; -pub use linux_headers_asm_unistd::__NR_landlock_restrict_self; -pub use linux_headers_asm_unistd::__NR_memfd_secret; -pub use linux_headers_asm_unistd::__NR_process_mrelease; -pub use linux_headers_asm_unistd::__NR_futex_waitv; -pub use linux_headers_asm_unistd::__NR_set_mempolicy_home_node; -pub use linux_headers_asm_unistd::__NR_cachestat; -pub use linux_headers_asm_unistd::__NR_fchmodat2; -pub use linux_headers_asm_unistd::__NR_map_shadow_stack; -pub use linux_headers_asm_unistd::__NR_futex_wake; -pub use linux_headers_asm_unistd::__NR_futex_wait; -pub use linux_headers_asm_unistd::__NR_futex_requeue; -pub use linux_headers_asm_unistd::__NR_statmount; -pub use linux_headers_asm_unistd::__NR_listmount; -pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; -pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; -pub use linux_headers_asm_unistd::__NR_lsm_list_modules; -pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_hwcap; -pub use linux_headers_asm_hwcap::HWCAP_FP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMD; -pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; -pub use linux_headers_asm_hwcap::HWCAP_AES; -pub use linux_headers_asm_hwcap::HWCAP_PMULL; -pub use linux_headers_asm_hwcap::HWCAP_SHA1; -pub use linux_headers_asm_hwcap::HWCAP_SHA2; -pub use linux_headers_asm_hwcap::HWCAP_CRC32; -pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; -pub use linux_headers_asm_hwcap::HWCAP_FPHP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; -pub use linux_headers_asm_hwcap::HWCAP_CPUID; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; -pub use linux_headers_asm_hwcap::HWCAP_JSCVT; -pub use linux_headers_asm_hwcap::HWCAP_FCMA; -pub use linux_headers_asm_hwcap::HWCAP_LRCPC; -pub use linux_headers_asm_hwcap::HWCAP_DCPOP; -pub use linux_headers_asm_hwcap::HWCAP_SHA3; -pub use linux_headers_asm_hwcap::HWCAP_SM3; -pub use linux_headers_asm_hwcap::HWCAP_SM4; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; -pub use linux_headers_asm_hwcap::HWCAP_SHA512; -pub use linux_headers_asm_hwcap::HWCAP_SVE; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; -pub use linux_headers_asm_hwcap::HWCAP_DIT; -pub use linux_headers_asm_hwcap::HWCAP_USCAT; -pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; -pub use linux_headers_asm_hwcap::HWCAP_FLAGM; -pub use linux_headers_asm_hwcap::HWCAP_SSBS; -pub use linux_headers_asm_hwcap::HWCAP_SB; -pub use linux_headers_asm_hwcap::HWCAP_PACA; -pub use linux_headers_asm_hwcap::HWCAP_PACG; -pub use linux_headers_asm_hwcap::HWCAP2_DCPODP; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2; -pub use linux_headers_asm_hwcap::HWCAP2_SVEAES; -pub use linux_headers_asm_hwcap::HWCAP2_SVEPMULL; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBITPERM; -pub use linux_headers_asm_hwcap::HWCAP2_SVESHA3; -pub use linux_headers_asm_hwcap::HWCAP2_SVESM4; -pub use linux_headers_asm_hwcap::HWCAP2_FLAGM2; -pub use linux_headers_asm_hwcap::HWCAP2_FRINT; -pub use linux_headers_asm_hwcap::HWCAP2_SVEI8MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF32MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF64MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBF16; -pub use linux_headers_asm_hwcap::HWCAP2_I8MM; -pub use linux_headers_asm_hwcap::HWCAP2_BF16; -pub use linux_headers_asm_hwcap::HWCAP2_DGH; -pub use linux_headers_asm_hwcap::HWCAP2_RNG; -pub use linux_headers_asm_hwcap::HWCAP2_BTI; -pub use linux_headers_asm_hwcap::HWCAP2_MTE; -pub use linux_headers_asm_hwcap::HWCAP2_ECV; -pub use linux_headers_asm_hwcap::HWCAP2_AFP; -pub use linux_headers_asm_hwcap::HWCAP2_RPRES; -pub use linux_headers_asm_hwcap::HWCAP2_MTE3; -pub use linux_headers_asm_hwcap::HWCAP2_SME; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F64F64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I8I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F32F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_FA64; -pub use linux_headers_asm_hwcap::HWCAP2_WFXT; -pub use linux_headers_asm_hwcap::HWCAP2_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_CSSC; -pub use linux_headers_asm_hwcap::HWCAP2_RPRFM; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME2; -pub use linux_headers_asm_hwcap::HWCAP2_SME2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_BI32I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F16; -pub use linux_headers_asm_hwcap::HWCAP2_MOPS; -pub use linux_headers_asm_hwcap::HWCAP2_HBC; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_LRCPC3; -pub use linux_headers_asm_hwcap::HWCAP2_LSE128; -pub use linux_headers_asm_hwcap::HWCAP2_FPMR; -pub use linux_headers_asm_hwcap::HWCAP2_LUT; -pub use linux_headers_asm_hwcap::HWCAP2_FAMINMAX; -pub use linux_headers_asm_hwcap::HWCAP2_F8CVT; -pub use linux_headers_asm_hwcap::HWCAP2_F8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_F8E4M3; -pub use linux_headers_asm_hwcap::HWCAP2_F8E5M2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_LUTV2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_POE; -mod sys_auxv; -pub use sys_auxv::getauxval; +pub use linux_headers_asm_unistd::__NR_syscalls; +pub use linux_headers_asm_unistd::__NR_fcntl; +pub use linux_headers_asm_unistd::__NR_statfs; +pub use linux_headers_asm_unistd::__NR_fstatfs; +pub use linux_headers_asm_unistd::__NR_truncate; +pub use linux_headers_asm_unistd::__NR_ftruncate; +pub use linux_headers_asm_unistd::__NR_lseek; +pub use linux_headers_asm_unistd::__NR_sendfile; +pub use linux_headers_asm_unistd::__NR_newfstatat; +pub use linux_headers_asm_unistd::__NR_fstat; +pub use linux_headers_asm_unistd::__NR_mmap; +pub use linux_headers_asm_unistd::__NR_fadvise64; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/sys_auxv.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/sys_auxv.rs index aeae8561..1fe1c678 100644 --- a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/sys_auxv.rs +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(__type: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/sys_prctl.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/sys_prctl.rs new file mode 100644 index 00000000..2daf3d5a --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(__option: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/unistd.rs b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/unistd.rs new file mode 100644 index 00000000..eab78d00 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_be_linux_gnu_ilp32/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(__sysno: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/aarch64_be_netbsd/aarch64_armreg.rs b/tests/helper/src/gen/sys/aarch64_be_netbsd/machine_armreg.rs similarity index 95% rename from tests/helper/src/gen/sys/aarch64_be_netbsd/aarch64_armreg.rs rename to tests/helper/src/gen/sys/aarch64_be_netbsd/machine_armreg.rs index 309ef9dc..552c2eed 100644 --- a/tests/helper/src/gen/sys/aarch64_be_netbsd/aarch64_armreg.rs +++ b/tests/helper/src/gen/sys/aarch64_be_netbsd/machine_armreg.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct aarch64_sysctl_cpu_id { diff --git a/tests/helper/src/gen/sys/aarch64_be_netbsd/mod.rs b/tests/helper/src/gen/sys/aarch64_be_netbsd/mod.rs index 02232ce2..bee636ff 100644 --- a/tests/helper/src/gen/sys/aarch64_be_netbsd/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_be_netbsd/mod.rs @@ -4,12 +4,6 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod sys_sysctl; -pub use sys_sysctl::SYSCTL_VERS_1; -pub use sys_sysctl::CTL_QUERY; -pub use sys_sysctl::sysctl; -pub use sys_sysctl::sysctlbyname; -pub use sys_sysctl::sysctlnode; mod sys_syscall; pub use sys_syscall::SYS_MAXSYSARGS; pub use sys_syscall::SYS_syscall; @@ -469,6 +463,12 @@ pub use sys_syscall::SYS_epoll_pwait2; pub use sys_syscall::SYS___dup3100; pub use sys_syscall::SYS_MAXSYSCALL; pub use sys_syscall::SYS_NSYSENT; -mod aarch64_armreg; -pub use aarch64_armreg::aarch64_sysctl_cpu_id; +mod sys_sysctl; +pub use sys_sysctl::SYSCTL_VERS_1; +pub use sys_sysctl::SYSCTL_VERSION; +pub use sys_sysctl::CTL_QUERY; +pub use sys_sysctl::sysctlbyname; +pub use sys_sysctl::sysctlnode; +mod machine_armreg; +pub use machine_armreg::aarch64_sysctl_cpu_id; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/aarch64_be_netbsd/sys_syscall.rs b/tests/helper/src/gen/sys/aarch64_be_netbsd/sys_syscall.rs index d669c979..fc14a1d5 100644 --- a/tests/helper/src/gen/sys/aarch64_be_netbsd/sys_syscall.rs +++ b/tests/helper/src/gen/sys/aarch64_be_netbsd/sys_syscall.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const SYS_MAXSYSARGS: u32 = 8; pub const SYS_syscall: u32 = 0; pub const SYS_exit: u32 = 1; diff --git a/tests/helper/src/gen/sys/aarch64_be_netbsd/sys_sysctl.rs b/tests/helper/src/gen/sys/aarch64_be_netbsd/sys_sysctl.rs index ec31b214..684719b9 100644 --- a/tests/helper/src/gen/sys/aarch64_be_netbsd/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/aarch64_be_netbsd/sys_sysctl.rs @@ -3,21 +3,13 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. -pub type u_int = ::std::os::raw::c_uint; +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type u_quad_t = u64; pub const SYSCTL_VERS_1: u32 = 16777216; +pub const SYSCTL_VERSION: u32 = 16777216; pub const CTL_QUERY: i32 = -2; pub type sysctlfn = *mut ::core::ffi::c_void; -extern "C" { - pub fn sysctl( - arg1: *const ::std::os::raw::c_int, - arg2: u_int, - arg3: *mut ::core::ffi::c_void, - arg4: *mut usize, - arg5: *const ::core::ffi::c_void, - arg6: usize, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sysctlbyname( arg1: *const ::std::os::raw::c_char, diff --git a/tests/helper/src/gen/sys/aarch64_freebsd/dlfcn.rs b/tests/helper/src/gen/sys/aarch64_freebsd/dlfcn.rs new file mode 100644 index 00000000..e7bac10c --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_freebsd/dlfcn.rs @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = -2i8 + as *mut ::std::os::raw::c_void; +extern "C" { + pub fn dlsym( + arg1: *mut ::core::ffi::c_void, + arg2: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/aarch64_freebsd/machine_elf.rs b/tests/helper/src/gen/sys/aarch64_freebsd/machine_elf.rs index e9c26249..a070e867 100644 --- a/tests/helper/src/gen/sys/aarch64_freebsd/machine_elf.rs +++ b/tests/helper/src/gen/sys/aarch64_freebsd/machine_elf.rs @@ -3,6 +3,19 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf32_Auxinfo { + pub a_type: ::std::os::raw::c_int, + pub a_un: Elf32_Auxinfo__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf32_Auxinfo__bindgen_ty_1 { + pub a_val: ::std::os::raw::c_int, +} #[repr(C)] #[derive(Copy, Clone)] pub struct Elf64_Auxinfo { @@ -16,6 +29,7 @@ pub union Elf64_Auxinfo__bindgen_ty_1 { pub a_ptr: *mut ::core::ffi::c_void, pub a_fcn: ::core::option::Option, } +pub type Elf_Auxinfo = Elf64_Auxinfo; pub const HWCAP_FP: u32 = 1; pub const HWCAP_ASIMD: u32 = 2; pub const HWCAP_EVTSTRM: u32 = 4; diff --git a/tests/helper/src/gen/sys/aarch64_freebsd/mod.rs b/tests/helper/src/gen/sys/aarch64_freebsd/mod.rs index 20fc090c..a9993088 100644 --- a/tests/helper/src/gen/sys/aarch64_freebsd/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_freebsd/mod.rs @@ -4,6 +4,9 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod sys_auxv; pub use sys_auxv::elf_aux_info; mod sys_syscall; @@ -443,13 +446,51 @@ pub use sys_sysctl::KERN_PROC; pub use sys_sysctl::KERN_PROC_AUXV; pub use sys_sysctl::sysctl; mod sys_elf_common; +pub use sys_elf_common::AT_NULL; +pub use sys_elf_common::AT_IGNORE; +pub use sys_elf_common::AT_EXECFD; +pub use sys_elf_common::AT_PHDR; +pub use sys_elf_common::AT_PHENT; +pub use sys_elf_common::AT_PHNUM; +pub use sys_elf_common::AT_PAGESZ; +pub use sys_elf_common::AT_BASE; +pub use sys_elf_common::AT_FLAGS; +pub use sys_elf_common::AT_ENTRY; +pub use sys_elf_common::AT_NOTELF; +pub use sys_elf_common::AT_UID; +pub use sys_elf_common::AT_EUID; +pub use sys_elf_common::AT_GID; +pub use sys_elf_common::AT_EGID; +pub use sys_elf_common::AT_EXECPATH; +pub use sys_elf_common::AT_CANARY; +pub use sys_elf_common::AT_CANARYLEN; +pub use sys_elf_common::AT_OSRELDATE; +pub use sys_elf_common::AT_NCPUS; +pub use sys_elf_common::AT_PAGESIZES; +pub use sys_elf_common::AT_PAGESIZESLEN; +pub use sys_elf_common::AT_TIMEKEEP; +pub use sys_elf_common::AT_STACKPROT; +pub use sys_elf_common::AT_EHDRFLAGS; pub use sys_elf_common::AT_HWCAP; pub use sys_elf_common::AT_HWCAP2; +pub use sys_elf_common::AT_BSDFLAGS; +pub use sys_elf_common::AT_ARGC; +pub use sys_elf_common::AT_ARGV; +pub use sys_elf_common::AT_ENVC; +pub use sys_elf_common::AT_ENVV; +pub use sys_elf_common::AT_PS_STRINGS; +pub use sys_elf_common::AT_FXRNG; +pub use sys_elf_common::AT_KPRELOAD; +pub use sys_elf_common::AT_USRSTACKBASE; +pub use sys_elf_common::AT_USRSTACKLIM; +pub use sys_elf_common::AT_CHERI_STATS; pub use sys_elf_common::AT_COUNT; mod unistd; pub use unistd::getpid; mod machine_elf; +pub use machine_elf::Elf32_Auxinfo; pub use machine_elf::Elf64_Auxinfo; +pub use machine_elf::Elf_Auxinfo; pub use machine_elf::HWCAP_FP; pub use machine_elf::HWCAP_ASIMD; pub use machine_elf::HWCAP_EVTSTRM; diff --git a/tests/helper/src/gen/sys/aarch64_freebsd/sys_auxv.rs b/tests/helper/src/gen/sys/aarch64_freebsd/sys_auxv.rs index 78daf7e3..7b6c1be2 100644 --- a/tests/helper/src/gen/sys/aarch64_freebsd/sys_auxv.rs +++ b/tests/helper/src/gen/sys/aarch64_freebsd/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn elf_aux_info( aux: ::std::os::raw::c_int, diff --git a/tests/helper/src/gen/sys/aarch64_freebsd/sys_elf_common.rs b/tests/helper/src/gen/sys/aarch64_freebsd/sys_elf_common.rs index f1075df3..85bae3b6 100644 --- a/tests/helper/src/gen/sys/aarch64_freebsd/sys_elf_common.rs +++ b/tests/helper/src/gen/sys/aarch64_freebsd/sys_elf_common.rs @@ -3,6 +3,44 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_EXECPATH: u32 = 15; +pub const AT_CANARY: u32 = 16; +pub const AT_CANARYLEN: u32 = 17; +pub const AT_OSRELDATE: u32 = 18; +pub const AT_NCPUS: u32 = 19; +pub const AT_PAGESIZES: u32 = 20; +pub const AT_PAGESIZESLEN: u32 = 21; +pub const AT_TIMEKEEP: u32 = 22; +pub const AT_STACKPROT: u32 = 23; +pub const AT_EHDRFLAGS: u32 = 24; pub const AT_HWCAP: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_BSDFLAGS: u32 = 27; +pub const AT_ARGC: u32 = 28; +pub const AT_ARGV: u32 = 29; +pub const AT_ENVC: u32 = 30; +pub const AT_ENVV: u32 = 31; +pub const AT_PS_STRINGS: u32 = 32; +pub const AT_FXRNG: u32 = 33; +pub const AT_KPRELOAD: u32 = 34; +pub const AT_USRSTACKBASE: u32 = 35; +pub const AT_USRSTACKLIM: u32 = 36; +pub const AT_CHERI_STATS: u32 = 37; pub const AT_COUNT: u32 = 38; diff --git a/tests/helper/src/gen/sys/aarch64_freebsd/sys_syscall.rs b/tests/helper/src/gen/sys/aarch64_freebsd/sys_syscall.rs index ca887596..9437b0b4 100644 --- a/tests/helper/src/gen/sys/aarch64_freebsd/sys_syscall.rs +++ b/tests/helper/src/gen/sys/aarch64_freebsd/sys_syscall.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const SYS_syscall: u32 = 0; pub const SYS_exit: u32 = 1; pub const SYS_fork: u32 = 2; diff --git a/tests/helper/src/gen/sys/aarch64_freebsd/sys_sysctl.rs b/tests/helper/src/gen/sys/aarch64_freebsd/sys_sysctl.rs index 49a2356c..4eb45c3a 100644 --- a/tests/helper/src/gen/sys/aarch64_freebsd/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/aarch64_freebsd/sys_sysctl.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const CTL_KERN: u32 = 1; pub const KERN_PROC: u32 = 14; pub const KERN_PROC_AUXV: u32 = 36; diff --git a/tests/helper/src/gen/sys/aarch64_freebsd/unistd.rs b/tests/helper/src/gen/sys/aarch64_freebsd/unistd.rs index a65ffc02..43120343 100644 --- a/tests/helper/src/gen/sys/aarch64_freebsd/unistd.rs +++ b/tests/helper/src/gen/sys/aarch64_freebsd/unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type __int32_t = ::std::os::raw::c_int; pub type __pid_t = __int32_t; pub type pid_t = __pid_t; diff --git a/tests/helper/src/gen/sys/aarch64_fuchsia/zircon_system_public_zircon_errors.rs b/tests/helper/src/gen/sys/aarch64_fuchsia/zircon_system_public_zircon_errors.rs index de7f06d8..b077ae8e 100644 --- a/tests/helper/src/gen/sys/aarch64_fuchsia/zircon_system_public_zircon_errors.rs +++ b/tests/helper/src/gen/sys/aarch64_fuchsia/zircon_system_public_zircon_errors.rs @@ -3,4 +3,6 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const ZX_OK: u32 = 0; diff --git a/tests/helper/src/gen/sys/aarch64_fuchsia/zircon_system_public_zircon_features.rs b/tests/helper/src/gen/sys/aarch64_fuchsia/zircon_system_public_zircon_features.rs index 97208c01..2a33e755 100644 --- a/tests/helper/src/gen/sys/aarch64_fuchsia/zircon_system_public_zircon_features.rs +++ b/tests/helper/src/gen/sys/aarch64_fuchsia/zircon_system_public_zircon_features.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const ZX_FEATURE_KIND_CPU: u32 = 0u8 as u32; pub const ZX_FEATURE_KIND_HW_BREAKPOINT_COUNT: u32 = 1u8 as u32; pub const ZX_FEATURE_KIND_HW_WATCHPOINT_COUNT: u32 = 2u8 as u32; diff --git a/tests/helper/src/gen/sys/aarch64_fuchsia/zircon_system_public_zircon_types.rs b/tests/helper/src/gen/sys/aarch64_fuchsia/zircon_system_public_zircon_types.rs index 672a86e5..2821fdd6 100644 --- a/tests/helper/src/gen/sys/aarch64_fuchsia/zircon_system_public_zircon_types.rs +++ b/tests/helper/src/gen/sys/aarch64_fuchsia/zircon_system_public_zircon_types.rs @@ -3,4 +3,6 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type zx_status_t = i32; diff --git a/tests/helper/src/gen/sys/aarch64_illumos/sys_auxv.rs b/tests/helper/src/gen/sys/aarch64_illumos/sys_auxv.rs index 3ddb7b72..759f5323 100644 --- a/tests/helper/src/gen/sys/aarch64_illumos/sys_auxv.rs +++ b/tests/helper/src/gen/sys/aarch64_illumos/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type uint_t = ::std::os::raw::c_uint; extern "C" { pub fn getisax(arg1: *mut u32, arg2: uint_t) -> uint_t; diff --git a/tests/helper/src/gen/sys/aarch64_illumos/sys_auxv_aarch64.rs b/tests/helper/src/gen/sys/aarch64_illumos/sys_auxv_aarch64.rs index 88257ad4..957c76c5 100644 --- a/tests/helper/src/gen/sys/aarch64_illumos/sys_auxv_aarch64.rs +++ b/tests/helper/src/gen/sys/aarch64_illumos/sys_auxv_aarch64.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const AV_AARCH64_FP: u32 = 1; pub const AV_AARCH64_ADVSIMD: u32 = 2; pub const AV_AARCH64_SVE: u32 = 4; diff --git a/tests/helper/src/gen/sys/aarch64_linux_android/dlfcn.rs b/tests/helper/src/gen/sys/aarch64_linux_android/dlfcn.rs new file mode 100644 index 00000000..70c321a7 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_android/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn dlsym( + __handle: *mut ::core::ffi::c_void, + __symbol: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); diff --git a/tests/helper/src/gen/sys/aarch64_linux_android/elf.rs b/tests/helper/src/gen/sys/aarch64_linux_android/elf.rs index d776ec3a..67652ede 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_android/elf.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_android/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type __u32 = ::std::os::raw::c_uint; pub type __u64 = ::std::os::raw::c_ulonglong; #[repr(C)] diff --git a/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_asm_hwcap.rs b/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_asm_hwcap.rs index 1473f4ef..3b593c9f 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_asm_hwcap.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_asm_hwcap.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const HWCAP_FP: u32 = 1; pub const HWCAP_ASIMD: u32 = 2; pub const HWCAP_EVTSTRM: u32 = 4; diff --git a/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_asm_unistd.rs index aa756e7f..3d00edab 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_io_setup: u32 = 0; pub const __NR_io_destroy: u32 = 1; pub const __NR_io_submit: u32 = 2; diff --git a/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_linux_auxvec.rs index 2b4a98be..da867dd1 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_linux_auxvec.rs @@ -3,7 +3,35 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 2; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_android/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/aarch64_linux_android/mod.rs b/tests/helper/src/gen/sys/aarch64_linux_android/mod.rs index ed267d9b..42f8fdf8 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_android/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_android/mod.rs @@ -4,13 +4,103 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_hwcap; +pub use linux_headers_asm_hwcap::HWCAP_FP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMD; +pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; +pub use linux_headers_asm_hwcap::HWCAP_AES; +pub use linux_headers_asm_hwcap::HWCAP_PMULL; +pub use linux_headers_asm_hwcap::HWCAP_SHA1; +pub use linux_headers_asm_hwcap::HWCAP_SHA2; +pub use linux_headers_asm_hwcap::HWCAP_CRC32; +pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; +pub use linux_headers_asm_hwcap::HWCAP_FPHP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; +pub use linux_headers_asm_hwcap::HWCAP_CPUID; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; +pub use linux_headers_asm_hwcap::HWCAP_JSCVT; +pub use linux_headers_asm_hwcap::HWCAP_FCMA; +pub use linux_headers_asm_hwcap::HWCAP_LRCPC; +pub use linux_headers_asm_hwcap::HWCAP_DCPOP; +pub use linux_headers_asm_hwcap::HWCAP_SHA3; +pub use linux_headers_asm_hwcap::HWCAP_SM3; +pub use linux_headers_asm_hwcap::HWCAP_SM4; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; +pub use linux_headers_asm_hwcap::HWCAP_SHA512; +pub use linux_headers_asm_hwcap::HWCAP_SVE; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; +pub use linux_headers_asm_hwcap::HWCAP_DIT; +pub use linux_headers_asm_hwcap::HWCAP_USCAT; +pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; +pub use linux_headers_asm_hwcap::HWCAP_FLAGM; +pub use linux_headers_asm_hwcap::HWCAP_SSBS; +pub use linux_headers_asm_hwcap::HWCAP_SB; +pub use linux_headers_asm_hwcap::HWCAP_PACA; +pub use linux_headers_asm_hwcap::HWCAP_PACG; +pub use linux_headers_asm_hwcap::HWCAP2_DCPODP; +pub use linux_headers_asm_hwcap::HWCAP2_SVE2; +pub use linux_headers_asm_hwcap::HWCAP2_SVEAES; +pub use linux_headers_asm_hwcap::HWCAP2_SVEPMULL; +pub use linux_headers_asm_hwcap::HWCAP2_SVEBITPERM; +pub use linux_headers_asm_hwcap::HWCAP2_SVESHA3; +pub use linux_headers_asm_hwcap::HWCAP2_SVESM4; +pub use linux_headers_asm_hwcap::HWCAP2_FLAGM2; +pub use linux_headers_asm_hwcap::HWCAP2_FRINT; +pub use linux_headers_asm_hwcap::HWCAP2_SVEI8MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEF32MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEF64MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEBF16; +pub use linux_headers_asm_hwcap::HWCAP2_I8MM; +pub use linux_headers_asm_hwcap::HWCAP2_BF16; +pub use linux_headers_asm_hwcap::HWCAP2_DGH; +pub use linux_headers_asm_hwcap::HWCAP2_RNG; +pub use linux_headers_asm_hwcap::HWCAP2_BTI; +pub use linux_headers_asm_hwcap::HWCAP2_MTE; +pub use linux_headers_asm_hwcap::HWCAP2_ECV; +pub use linux_headers_asm_hwcap::HWCAP2_AFP; +pub use linux_headers_asm_hwcap::HWCAP2_RPRES; +pub use linux_headers_asm_hwcap::HWCAP2_MTE3; +pub use linux_headers_asm_hwcap::HWCAP2_SME; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I64; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F64F64; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I8I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_B16F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F32F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_FA64; +pub use linux_headers_asm_hwcap::HWCAP2_WFXT; +pub use linux_headers_asm_hwcap::HWCAP2_EBF16; +pub use linux_headers_asm_hwcap::HWCAP2_SVE_EBF16; +pub use linux_headers_asm_hwcap::HWCAP2_CSSC; +pub use linux_headers_asm_hwcap::HWCAP2_RPRFM; +pub use linux_headers_asm_hwcap::HWCAP2_SVE2P1; +pub use linux_headers_asm_hwcap::HWCAP2_SME2; +pub use linux_headers_asm_hwcap::HWCAP2_SME2P1; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_BI32I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_B16B16; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F16; +pub use linux_headers_asm_hwcap::HWCAP2_MOPS; +pub use linux_headers_asm_hwcap::HWCAP2_HBC; +pub use linux_headers_asm_hwcap::HWCAP2_SVE_B16B16; +pub use linux_headers_asm_hwcap::HWCAP2_LRCPC3; +pub use linux_headers_asm_hwcap::HWCAP2_LSE128; +pub use linux_headers_asm_hwcap::HWCAP2_FPMR; +pub use linux_headers_asm_hwcap::HWCAP2_LUT; +pub use linux_headers_asm_hwcap::HWCAP2_FAMINMAX; +pub use linux_headers_asm_hwcap::HWCAP2_F8CVT; +pub use linux_headers_asm_hwcap::HWCAP2_F8FMA; +pub use linux_headers_asm_hwcap::HWCAP2_F8DP4; +pub use linux_headers_asm_hwcap::HWCAP2_F8DP2; +pub use linux_headers_asm_hwcap::HWCAP2_F8E4M3; +pub use linux_headers_asm_hwcap::HWCAP2_F8E5M2; +pub use linux_headers_asm_hwcap::HWCAP2_SME_LUTV2; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F16; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8FMA; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP4; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP2; +pub use linux_headers_asm_hwcap::HWCAP2_POE; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_io_setup; pub use linux_headers_asm_unistd::__NR_io_destroy; @@ -330,109 +420,233 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_hwcap; -pub use linux_headers_asm_hwcap::HWCAP_FP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMD; -pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; -pub use linux_headers_asm_hwcap::HWCAP_AES; -pub use linux_headers_asm_hwcap::HWCAP_PMULL; -pub use linux_headers_asm_hwcap::HWCAP_SHA1; -pub use linux_headers_asm_hwcap::HWCAP_SHA2; -pub use linux_headers_asm_hwcap::HWCAP_CRC32; -pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; -pub use linux_headers_asm_hwcap::HWCAP_FPHP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; -pub use linux_headers_asm_hwcap::HWCAP_CPUID; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; -pub use linux_headers_asm_hwcap::HWCAP_JSCVT; -pub use linux_headers_asm_hwcap::HWCAP_FCMA; -pub use linux_headers_asm_hwcap::HWCAP_LRCPC; -pub use linux_headers_asm_hwcap::HWCAP_DCPOP; -pub use linux_headers_asm_hwcap::HWCAP_SHA3; -pub use linux_headers_asm_hwcap::HWCAP_SM3; -pub use linux_headers_asm_hwcap::HWCAP_SM4; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; -pub use linux_headers_asm_hwcap::HWCAP_SHA512; -pub use linux_headers_asm_hwcap::HWCAP_SVE; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; -pub use linux_headers_asm_hwcap::HWCAP_DIT; -pub use linux_headers_asm_hwcap::HWCAP_USCAT; -pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; -pub use linux_headers_asm_hwcap::HWCAP_FLAGM; -pub use linux_headers_asm_hwcap::HWCAP_SSBS; -pub use linux_headers_asm_hwcap::HWCAP_SB; -pub use linux_headers_asm_hwcap::HWCAP_PACA; -pub use linux_headers_asm_hwcap::HWCAP_PACG; -pub use linux_headers_asm_hwcap::HWCAP2_DCPODP; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2; -pub use linux_headers_asm_hwcap::HWCAP2_SVEAES; -pub use linux_headers_asm_hwcap::HWCAP2_SVEPMULL; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBITPERM; -pub use linux_headers_asm_hwcap::HWCAP2_SVESHA3; -pub use linux_headers_asm_hwcap::HWCAP2_SVESM4; -pub use linux_headers_asm_hwcap::HWCAP2_FLAGM2; -pub use linux_headers_asm_hwcap::HWCAP2_FRINT; -pub use linux_headers_asm_hwcap::HWCAP2_SVEI8MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF32MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF64MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBF16; -pub use linux_headers_asm_hwcap::HWCAP2_I8MM; -pub use linux_headers_asm_hwcap::HWCAP2_BF16; -pub use linux_headers_asm_hwcap::HWCAP2_DGH; -pub use linux_headers_asm_hwcap::HWCAP2_RNG; -pub use linux_headers_asm_hwcap::HWCAP2_BTI; -pub use linux_headers_asm_hwcap::HWCAP2_MTE; -pub use linux_headers_asm_hwcap::HWCAP2_ECV; -pub use linux_headers_asm_hwcap::HWCAP2_AFP; -pub use linux_headers_asm_hwcap::HWCAP2_RPRES; -pub use linux_headers_asm_hwcap::HWCAP2_MTE3; -pub use linux_headers_asm_hwcap::HWCAP2_SME; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F64F64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I8I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F32F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_FA64; -pub use linux_headers_asm_hwcap::HWCAP2_WFXT; -pub use linux_headers_asm_hwcap::HWCAP2_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_CSSC; -pub use linux_headers_asm_hwcap::HWCAP2_RPRFM; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME2; -pub use linux_headers_asm_hwcap::HWCAP2_SME2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_BI32I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F16; -pub use linux_headers_asm_hwcap::HWCAP2_MOPS; -pub use linux_headers_asm_hwcap::HWCAP2_HBC; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_LRCPC3; -pub use linux_headers_asm_hwcap::HWCAP2_LSE128; -pub use linux_headers_asm_hwcap::HWCAP2_FPMR; -pub use linux_headers_asm_hwcap::HWCAP2_LUT; -pub use linux_headers_asm_hwcap::HWCAP2_FAMINMAX; -pub use linux_headers_asm_hwcap::HWCAP2_F8CVT; -pub use linux_headers_asm_hwcap::HWCAP2_F8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_F8E4M3; -pub use linux_headers_asm_hwcap::HWCAP2_F8E5M2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_LUTV2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_POE; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::dlsym; +pub use dlfcn::RTLD_DEFAULT; +mod elf; +pub use elf::Elf32_auxv_t; +pub use elf::Elf64_auxv_t; mod sys_auxv; pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; mod sys_system_properties; pub use sys_system_properties::PROP_VALUE_MAX; pub use sys_system_properties::__system_property_get; -mod elf; -pub use elf::Elf32_auxv_t; -pub use elf::Elf64_auxv_t; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/aarch64_linux_android/sys_auxv.rs b/tests/helper/src/gen/sys/aarch64_linux_android/sys_auxv.rs index aeae8561..1fe1c678 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_android/sys_auxv.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_android/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(__type: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/aarch64_linux_android/sys_prctl.rs b/tests/helper/src/gen/sys/aarch64_linux_android/sys_prctl.rs new file mode 100644 index 00000000..b064aea3 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_android/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(__op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/aarch64_linux_android/sys_system_properties.rs b/tests/helper/src/gen/sys/aarch64_linux_android/sys_system_properties.rs index 8ae1b51d..c658c641 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_android/sys_system_properties.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_android/sys_system_properties.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const PROP_VALUE_MAX: u32 = 92; extern "C" { pub fn __system_property_get( diff --git a/tests/helper/src/gen/sys/aarch64_linux_android/unistd.rs b/tests/helper/src/gen/sys/aarch64_linux_android/unistd.rs new file mode 100644 index 00000000..3d81fa05 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_android/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(__number: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu/dlfcn.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu/dlfcn.rs new file mode 100644 index 00000000..0c516f36 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + __handle: *mut ::core::ffi::c_void, + __name: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu/elf.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu/elf.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_asm_hwcap.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_asm_hwcap.rs index 1473f4ef..3b593c9f 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_asm_hwcap.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_asm_hwcap.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const HWCAP_FP: u32 = 1; pub const HWCAP_ASIMD: u32 = 2; pub const HWCAP_EVTSTRM: u32 = 4; diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_asm_unistd.rs index aa756e7f..3d00edab 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_io_setup: u32 = 0; pub const __NR_io_destroy: u32 = 1; pub const __NR_io_submit: u32 = 2; diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_linux_auxvec.rs index 2b4a98be..da867dd1 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_linux_auxvec.rs @@ -3,7 +3,35 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 2; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu/mod.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu/mod.rs index bf89e901..ffacccce 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu/mod.rs @@ -4,13 +4,103 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_hwcap; +pub use linux_headers_asm_hwcap::HWCAP_FP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMD; +pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; +pub use linux_headers_asm_hwcap::HWCAP_AES; +pub use linux_headers_asm_hwcap::HWCAP_PMULL; +pub use linux_headers_asm_hwcap::HWCAP_SHA1; +pub use linux_headers_asm_hwcap::HWCAP_SHA2; +pub use linux_headers_asm_hwcap::HWCAP_CRC32; +pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; +pub use linux_headers_asm_hwcap::HWCAP_FPHP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; +pub use linux_headers_asm_hwcap::HWCAP_CPUID; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; +pub use linux_headers_asm_hwcap::HWCAP_JSCVT; +pub use linux_headers_asm_hwcap::HWCAP_FCMA; +pub use linux_headers_asm_hwcap::HWCAP_LRCPC; +pub use linux_headers_asm_hwcap::HWCAP_DCPOP; +pub use linux_headers_asm_hwcap::HWCAP_SHA3; +pub use linux_headers_asm_hwcap::HWCAP_SM3; +pub use linux_headers_asm_hwcap::HWCAP_SM4; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; +pub use linux_headers_asm_hwcap::HWCAP_SHA512; +pub use linux_headers_asm_hwcap::HWCAP_SVE; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; +pub use linux_headers_asm_hwcap::HWCAP_DIT; +pub use linux_headers_asm_hwcap::HWCAP_USCAT; +pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; +pub use linux_headers_asm_hwcap::HWCAP_FLAGM; +pub use linux_headers_asm_hwcap::HWCAP_SSBS; +pub use linux_headers_asm_hwcap::HWCAP_SB; +pub use linux_headers_asm_hwcap::HWCAP_PACA; +pub use linux_headers_asm_hwcap::HWCAP_PACG; +pub use linux_headers_asm_hwcap::HWCAP2_DCPODP; +pub use linux_headers_asm_hwcap::HWCAP2_SVE2; +pub use linux_headers_asm_hwcap::HWCAP2_SVEAES; +pub use linux_headers_asm_hwcap::HWCAP2_SVEPMULL; +pub use linux_headers_asm_hwcap::HWCAP2_SVEBITPERM; +pub use linux_headers_asm_hwcap::HWCAP2_SVESHA3; +pub use linux_headers_asm_hwcap::HWCAP2_SVESM4; +pub use linux_headers_asm_hwcap::HWCAP2_FLAGM2; +pub use linux_headers_asm_hwcap::HWCAP2_FRINT; +pub use linux_headers_asm_hwcap::HWCAP2_SVEI8MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEF32MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEF64MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEBF16; +pub use linux_headers_asm_hwcap::HWCAP2_I8MM; +pub use linux_headers_asm_hwcap::HWCAP2_BF16; +pub use linux_headers_asm_hwcap::HWCAP2_DGH; +pub use linux_headers_asm_hwcap::HWCAP2_RNG; +pub use linux_headers_asm_hwcap::HWCAP2_BTI; +pub use linux_headers_asm_hwcap::HWCAP2_MTE; +pub use linux_headers_asm_hwcap::HWCAP2_ECV; +pub use linux_headers_asm_hwcap::HWCAP2_AFP; +pub use linux_headers_asm_hwcap::HWCAP2_RPRES; +pub use linux_headers_asm_hwcap::HWCAP2_MTE3; +pub use linux_headers_asm_hwcap::HWCAP2_SME; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I64; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F64F64; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I8I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_B16F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F32F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_FA64; +pub use linux_headers_asm_hwcap::HWCAP2_WFXT; +pub use linux_headers_asm_hwcap::HWCAP2_EBF16; +pub use linux_headers_asm_hwcap::HWCAP2_SVE_EBF16; +pub use linux_headers_asm_hwcap::HWCAP2_CSSC; +pub use linux_headers_asm_hwcap::HWCAP2_RPRFM; +pub use linux_headers_asm_hwcap::HWCAP2_SVE2P1; +pub use linux_headers_asm_hwcap::HWCAP2_SME2; +pub use linux_headers_asm_hwcap::HWCAP2_SME2P1; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_BI32I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_B16B16; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F16; +pub use linux_headers_asm_hwcap::HWCAP2_MOPS; +pub use linux_headers_asm_hwcap::HWCAP2_HBC; +pub use linux_headers_asm_hwcap::HWCAP2_SVE_B16B16; +pub use linux_headers_asm_hwcap::HWCAP2_LRCPC3; +pub use linux_headers_asm_hwcap::HWCAP2_LSE128; +pub use linux_headers_asm_hwcap::HWCAP2_FPMR; +pub use linux_headers_asm_hwcap::HWCAP2_LUT; +pub use linux_headers_asm_hwcap::HWCAP2_FAMINMAX; +pub use linux_headers_asm_hwcap::HWCAP2_F8CVT; +pub use linux_headers_asm_hwcap::HWCAP2_F8FMA; +pub use linux_headers_asm_hwcap::HWCAP2_F8DP4; +pub use linux_headers_asm_hwcap::HWCAP2_F8DP2; +pub use linux_headers_asm_hwcap::HWCAP2_F8E4M3; +pub use linux_headers_asm_hwcap::HWCAP2_F8E5M2; +pub use linux_headers_asm_hwcap::HWCAP2_SME_LUTV2; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F16; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8FMA; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP4; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP2; +pub use linux_headers_asm_hwcap::HWCAP2_POE; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_io_setup; pub use linux_headers_asm_unistd::__NR_io_destroy; @@ -330,106 +420,230 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_hwcap; -pub use linux_headers_asm_hwcap::HWCAP_FP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMD; -pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; -pub use linux_headers_asm_hwcap::HWCAP_AES; -pub use linux_headers_asm_hwcap::HWCAP_PMULL; -pub use linux_headers_asm_hwcap::HWCAP_SHA1; -pub use linux_headers_asm_hwcap::HWCAP_SHA2; -pub use linux_headers_asm_hwcap::HWCAP_CRC32; -pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; -pub use linux_headers_asm_hwcap::HWCAP_FPHP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; -pub use linux_headers_asm_hwcap::HWCAP_CPUID; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; -pub use linux_headers_asm_hwcap::HWCAP_JSCVT; -pub use linux_headers_asm_hwcap::HWCAP_FCMA; -pub use linux_headers_asm_hwcap::HWCAP_LRCPC; -pub use linux_headers_asm_hwcap::HWCAP_DCPOP; -pub use linux_headers_asm_hwcap::HWCAP_SHA3; -pub use linux_headers_asm_hwcap::HWCAP_SM3; -pub use linux_headers_asm_hwcap::HWCAP_SM4; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; -pub use linux_headers_asm_hwcap::HWCAP_SHA512; -pub use linux_headers_asm_hwcap::HWCAP_SVE; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; -pub use linux_headers_asm_hwcap::HWCAP_DIT; -pub use linux_headers_asm_hwcap::HWCAP_USCAT; -pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; -pub use linux_headers_asm_hwcap::HWCAP_FLAGM; -pub use linux_headers_asm_hwcap::HWCAP_SSBS; -pub use linux_headers_asm_hwcap::HWCAP_SB; -pub use linux_headers_asm_hwcap::HWCAP_PACA; -pub use linux_headers_asm_hwcap::HWCAP_PACG; -pub use linux_headers_asm_hwcap::HWCAP2_DCPODP; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2; -pub use linux_headers_asm_hwcap::HWCAP2_SVEAES; -pub use linux_headers_asm_hwcap::HWCAP2_SVEPMULL; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBITPERM; -pub use linux_headers_asm_hwcap::HWCAP2_SVESHA3; -pub use linux_headers_asm_hwcap::HWCAP2_SVESM4; -pub use linux_headers_asm_hwcap::HWCAP2_FLAGM2; -pub use linux_headers_asm_hwcap::HWCAP2_FRINT; -pub use linux_headers_asm_hwcap::HWCAP2_SVEI8MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF32MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF64MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBF16; -pub use linux_headers_asm_hwcap::HWCAP2_I8MM; -pub use linux_headers_asm_hwcap::HWCAP2_BF16; -pub use linux_headers_asm_hwcap::HWCAP2_DGH; -pub use linux_headers_asm_hwcap::HWCAP2_RNG; -pub use linux_headers_asm_hwcap::HWCAP2_BTI; -pub use linux_headers_asm_hwcap::HWCAP2_MTE; -pub use linux_headers_asm_hwcap::HWCAP2_ECV; -pub use linux_headers_asm_hwcap::HWCAP2_AFP; -pub use linux_headers_asm_hwcap::HWCAP2_RPRES; -pub use linux_headers_asm_hwcap::HWCAP2_MTE3; -pub use linux_headers_asm_hwcap::HWCAP2_SME; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F64F64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I8I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F32F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_FA64; -pub use linux_headers_asm_hwcap::HWCAP2_WFXT; -pub use linux_headers_asm_hwcap::HWCAP2_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_CSSC; -pub use linux_headers_asm_hwcap::HWCAP2_RPRFM; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME2; -pub use linux_headers_asm_hwcap::HWCAP2_SME2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_BI32I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F16; -pub use linux_headers_asm_hwcap::HWCAP2_MOPS; -pub use linux_headers_asm_hwcap::HWCAP2_HBC; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_LRCPC3; -pub use linux_headers_asm_hwcap::HWCAP2_LSE128; -pub use linux_headers_asm_hwcap::HWCAP2_FPMR; -pub use linux_headers_asm_hwcap::HWCAP2_LUT; -pub use linux_headers_asm_hwcap::HWCAP2_FAMINMAX; -pub use linux_headers_asm_hwcap::HWCAP2_F8CVT; -pub use linux_headers_asm_hwcap::HWCAP2_F8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_F8E4M3; -pub use linux_headers_asm_hwcap::HWCAP2_F8E5M2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_LUTV2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_POE; -mod sys_auxv; -pub use sys_auxv::getauxval; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu/sys_auxv.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu/sys_auxv.rs index aeae8561..1fe1c678 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu/sys_auxv.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(__type: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu/sys_prctl.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu/sys_prctl.rs new file mode 100644 index 00000000..2daf3d5a --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(__option: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu/unistd.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu/unistd.rs new file mode 100644 index 00000000..eab78d00 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(__sysno: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/dlfcn.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/dlfcn.rs new file mode 100644 index 00000000..0c516f36 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + __handle: *mut ::core::ffi::c_void, + __name: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/elf.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/elf.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_asm_hwcap.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_asm_hwcap.rs index 1473f4ef..15bb533d 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_asm_hwcap.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_asm_hwcap.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const HWCAP_FP: u32 = 1; pub const HWCAP_ASIMD: u32 = 2; pub const HWCAP_EVTSTRM: u32 = 4; @@ -35,67 +37,3 @@ pub const HWCAP_SSBS: u32 = 268435456; pub const HWCAP_SB: u32 = 536870912; pub const HWCAP_PACA: u32 = 1073741824; pub const HWCAP_PACG: u32 = 2147483648; -pub const HWCAP2_DCPODP: u32 = 1; -pub const HWCAP2_SVE2: u32 = 2; -pub const HWCAP2_SVEAES: u32 = 4; -pub const HWCAP2_SVEPMULL: u32 = 8; -pub const HWCAP2_SVEBITPERM: u32 = 16; -pub const HWCAP2_SVESHA3: u32 = 32; -pub const HWCAP2_SVESM4: u32 = 64; -pub const HWCAP2_FLAGM2: u32 = 128; -pub const HWCAP2_FRINT: u32 = 256; -pub const HWCAP2_SVEI8MM: u32 = 512; -pub const HWCAP2_SVEF32MM: u32 = 1024; -pub const HWCAP2_SVEF64MM: u32 = 2048; -pub const HWCAP2_SVEBF16: u32 = 4096; -pub const HWCAP2_I8MM: u32 = 8192; -pub const HWCAP2_BF16: u32 = 16384; -pub const HWCAP2_DGH: u32 = 32768; -pub const HWCAP2_RNG: u32 = 65536; -pub const HWCAP2_BTI: u32 = 131072; -pub const HWCAP2_MTE: u32 = 262144; -pub const HWCAP2_ECV: u32 = 524288; -pub const HWCAP2_AFP: u32 = 1048576; -pub const HWCAP2_RPRES: u32 = 2097152; -pub const HWCAP2_MTE3: u32 = 4194304; -pub const HWCAP2_SME: u32 = 8388608; -pub const HWCAP2_SME_I16I64: u32 = 16777216; -pub const HWCAP2_SME_F64F64: u32 = 33554432; -pub const HWCAP2_SME_I8I32: u32 = 67108864; -pub const HWCAP2_SME_F16F32: u32 = 134217728; -pub const HWCAP2_SME_B16F32: u32 = 268435456; -pub const HWCAP2_SME_F32F32: u32 = 536870912; -pub const HWCAP2_SME_FA64: u32 = 1073741824; -pub const HWCAP2_WFXT: u32 = 2147483648; -pub const HWCAP2_EBF16: u64 = 4294967296; -pub const HWCAP2_SVE_EBF16: u64 = 8589934592; -pub const HWCAP2_CSSC: u64 = 17179869184; -pub const HWCAP2_RPRFM: u64 = 34359738368; -pub const HWCAP2_SVE2P1: u64 = 68719476736; -pub const HWCAP2_SME2: u64 = 137438953472; -pub const HWCAP2_SME2P1: u64 = 274877906944; -pub const HWCAP2_SME_I16I32: u64 = 549755813888; -pub const HWCAP2_SME_BI32I32: u64 = 1099511627776; -pub const HWCAP2_SME_B16B16: u64 = 2199023255552; -pub const HWCAP2_SME_F16F16: u64 = 4398046511104; -pub const HWCAP2_MOPS: u64 = 8796093022208; -pub const HWCAP2_HBC: u64 = 17592186044416; -pub const HWCAP2_SVE_B16B16: u64 = 35184372088832; -pub const HWCAP2_LRCPC3: u64 = 70368744177664; -pub const HWCAP2_LSE128: u64 = 140737488355328; -pub const HWCAP2_FPMR: u64 = 281474976710656; -pub const HWCAP2_LUT: u64 = 562949953421312; -pub const HWCAP2_FAMINMAX: u64 = 1125899906842624; -pub const HWCAP2_F8CVT: u64 = 2251799813685248; -pub const HWCAP2_F8FMA: u64 = 4503599627370496; -pub const HWCAP2_F8DP4: u64 = 9007199254740992; -pub const HWCAP2_F8DP2: u64 = 18014398509481984; -pub const HWCAP2_F8E4M3: u64 = 36028797018963968; -pub const HWCAP2_F8E5M2: u64 = 72057594037927936; -pub const HWCAP2_SME_LUTV2: u64 = 144115188075855872; -pub const HWCAP2_SME_F8F16: u64 = 288230376151711744; -pub const HWCAP2_SME_F8F32: u64 = 576460752303423488; -pub const HWCAP2_SME_SF8FMA: u64 = 1152921504606846976; -pub const HWCAP2_SME_SF8DP4: u64 = 2305843009213693952; -pub const HWCAP2_SME_SF8DP2: u64 = 4611686018427387904; -pub const HWCAP2_POE: u64 = 9223372036854775808; diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_asm_unistd.rs index aa756e7f..d48e9376 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_io_setup: u32 = 0; pub const __NR_io_destroy: u32 = 1; pub const __NR_io_submit: u32 = 2; @@ -28,7 +30,6 @@ pub const __NR_epoll_ctl: u32 = 21; pub const __NR_epoll_pwait: u32 = 22; pub const __NR_dup: u32 = 23; pub const __NR_dup3: u32 = 24; -pub const __NR_fcntl: u32 = 25; pub const __NR_inotify_init1: u32 = 26; pub const __NR_inotify_add_watch: u32 = 27; pub const __NR_inotify_rm_watch: u32 = 28; @@ -46,10 +47,6 @@ pub const __NR_umount2: u32 = 39; pub const __NR_mount: u32 = 40; pub const __NR_pivot_root: u32 = 41; pub const __NR_nfsservctl: u32 = 42; -pub const __NR_statfs: u32 = 43; -pub const __NR_fstatfs: u32 = 44; -pub const __NR_truncate: u32 = 45; -pub const __NR_ftruncate: u32 = 46; pub const __NR_fallocate: u32 = 47; pub const __NR_faccessat: u32 = 48; pub const __NR_chdir: u32 = 49; @@ -65,7 +62,6 @@ pub const __NR_vhangup: u32 = 58; pub const __NR_pipe2: u32 = 59; pub const __NR_quotactl: u32 = 60; pub const __NR_getdents64: u32 = 61; -pub const __NR_lseek: u32 = 62; pub const __NR_read: u32 = 63; pub const __NR_write: u32 = 64; pub const __NR_readv: u32 = 65; @@ -74,7 +70,6 @@ pub const __NR_pread64: u32 = 67; pub const __NR_pwrite64: u32 = 68; pub const __NR_preadv: u32 = 69; pub const __NR_pwritev: u32 = 70; -pub const __NR_sendfile: u32 = 71; pub const __NR_pselect6: u32 = 72; pub const __NR_ppoll: u32 = 73; pub const __NR_signalfd4: u32 = 74; @@ -82,8 +77,6 @@ pub const __NR_vmsplice: u32 = 75; pub const __NR_splice: u32 = 76; pub const __NR_tee: u32 = 77; pub const __NR_readlinkat: u32 = 78; -pub const __NR_newfstatat: u32 = 79; -pub const __NR_fstat: u32 = 80; pub const __NR_sync: u32 = 81; pub const __NR_fsync: u32 = 82; pub const __NR_fdatasync: u32 = 83; @@ -225,8 +218,6 @@ pub const __NR_request_key: u32 = 218; pub const __NR_keyctl: u32 = 219; pub const __NR_clone: u32 = 220; pub const __NR_execve: u32 = 221; -pub const __NR_mmap: u32 = 222; -pub const __NR_fadvise64: u32 = 223; pub const __NR_swapon: u32 = 224; pub const __NR_swapoff: u32 = 225; pub const __NR_mprotect: u32 = 226; @@ -247,6 +238,7 @@ pub const __NR_rt_tgsigqueueinfo: u32 = 240; pub const __NR_perf_event_open: u32 = 241; pub const __NR_accept4: u32 = 242; pub const __NR_recvmmsg: u32 = 243; +pub const __NR_arch_specific_syscall: u32 = 244; pub const __NR_wait4: u32 = 260; pub const __NR_prlimit64: u32 = 261; pub const __NR_fanotify_init: u32 = 262; @@ -286,38 +278,15 @@ pub const __NR_pidfd_send_signal: u32 = 424; pub const __NR_io_uring_setup: u32 = 425; pub const __NR_io_uring_enter: u32 = 426; pub const __NR_io_uring_register: u32 = 427; -pub const __NR_open_tree: u32 = 428; -pub const __NR_move_mount: u32 = 429; -pub const __NR_fsopen: u32 = 430; -pub const __NR_fsconfig: u32 = 431; -pub const __NR_fsmount: u32 = 432; -pub const __NR_fspick: u32 = 433; -pub const __NR_pidfd_open: u32 = 434; -pub const __NR_clone3: u32 = 435; -pub const __NR_close_range: u32 = 436; -pub const __NR_openat2: u32 = 437; -pub const __NR_pidfd_getfd: u32 = 438; -pub const __NR_faccessat2: u32 = 439; -pub const __NR_process_madvise: u32 = 440; -pub const __NR_epoll_pwait2: u32 = 441; -pub const __NR_mount_setattr: u32 = 442; -pub const __NR_quotactl_fd: u32 = 443; -pub const __NR_landlock_create_ruleset: u32 = 444; -pub const __NR_landlock_add_rule: u32 = 445; -pub const __NR_landlock_restrict_self: u32 = 446; -pub const __NR_memfd_secret: u32 = 447; -pub const __NR_process_mrelease: u32 = 448; -pub const __NR_futex_waitv: u32 = 449; -pub const __NR_set_mempolicy_home_node: u32 = 450; -pub const __NR_cachestat: u32 = 451; -pub const __NR_fchmodat2: u32 = 452; -pub const __NR_map_shadow_stack: u32 = 453; -pub const __NR_futex_wake: u32 = 454; -pub const __NR_futex_wait: u32 = 455; -pub const __NR_futex_requeue: u32 = 456; -pub const __NR_statmount: u32 = 457; -pub const __NR_listmount: u32 = 458; -pub const __NR_lsm_get_self_attr: u32 = 459; -pub const __NR_lsm_set_self_attr: u32 = 460; -pub const __NR_lsm_list_modules: u32 = 461; -pub const __NR_mseal: u32 = 462; +pub const __NR_syscalls: u32 = 428; +pub const __NR_fcntl: u32 = 25; +pub const __NR_statfs: u32 = 43; +pub const __NR_fstatfs: u32 = 44; +pub const __NR_truncate: u32 = 45; +pub const __NR_ftruncate: u32 = 46; +pub const __NR_lseek: u32 = 62; +pub const __NR_sendfile: u32 = 71; +pub const __NR_newfstatat: u32 = 79; +pub const __NR_fstat: u32 = 80; +pub const __NR_mmap: u32 = 222; +pub const __NR_fadvise64: u32 = 223; diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_linux_auxvec.rs index 2b4a98be..2caf1af2 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_linux_auxvec.rs @@ -3,7 +3,31 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 2; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; -pub const AT_HWCAP3: u32 = 29; -pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_linux_prctl.rs index 0d4c45c6..bbf22b39 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/linux_headers_linux_prctl.rs @@ -3,4 +3,120 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. -pub const PR_GET_AUXV: u32 = 1096112214; +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/mod.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/mod.rs index bf89e901..67a0664b 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/mod.rs @@ -4,13 +4,39 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_hwcap; +pub use linux_headers_asm_hwcap::HWCAP_FP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMD; +pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; +pub use linux_headers_asm_hwcap::HWCAP_AES; +pub use linux_headers_asm_hwcap::HWCAP_PMULL; +pub use linux_headers_asm_hwcap::HWCAP_SHA1; +pub use linux_headers_asm_hwcap::HWCAP_SHA2; +pub use linux_headers_asm_hwcap::HWCAP_CRC32; +pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; +pub use linux_headers_asm_hwcap::HWCAP_FPHP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; +pub use linux_headers_asm_hwcap::HWCAP_CPUID; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; +pub use linux_headers_asm_hwcap::HWCAP_JSCVT; +pub use linux_headers_asm_hwcap::HWCAP_FCMA; +pub use linux_headers_asm_hwcap::HWCAP_LRCPC; +pub use linux_headers_asm_hwcap::HWCAP_DCPOP; +pub use linux_headers_asm_hwcap::HWCAP_SHA3; +pub use linux_headers_asm_hwcap::HWCAP_SM3; +pub use linux_headers_asm_hwcap::HWCAP_SM4; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; +pub use linux_headers_asm_hwcap::HWCAP_SHA512; +pub use linux_headers_asm_hwcap::HWCAP_SVE; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; +pub use linux_headers_asm_hwcap::HWCAP_DIT; +pub use linux_headers_asm_hwcap::HWCAP_USCAT; +pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; +pub use linux_headers_asm_hwcap::HWCAP_FLAGM; +pub use linux_headers_asm_hwcap::HWCAP_SSBS; +pub use linux_headers_asm_hwcap::HWCAP_SB; +pub use linux_headers_asm_hwcap::HWCAP_PACA; +pub use linux_headers_asm_hwcap::HWCAP_PACG; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_io_setup; pub use linux_headers_asm_unistd::__NR_io_destroy; @@ -37,7 +63,6 @@ pub use linux_headers_asm_unistd::__NR_epoll_ctl; pub use linux_headers_asm_unistd::__NR_epoll_pwait; pub use linux_headers_asm_unistd::__NR_dup; pub use linux_headers_asm_unistd::__NR_dup3; -pub use linux_headers_asm_unistd::__NR_fcntl; pub use linux_headers_asm_unistd::__NR_inotify_init1; pub use linux_headers_asm_unistd::__NR_inotify_add_watch; pub use linux_headers_asm_unistd::__NR_inotify_rm_watch; @@ -55,10 +80,6 @@ pub use linux_headers_asm_unistd::__NR_umount2; pub use linux_headers_asm_unistd::__NR_mount; pub use linux_headers_asm_unistd::__NR_pivot_root; pub use linux_headers_asm_unistd::__NR_nfsservctl; -pub use linux_headers_asm_unistd::__NR_statfs; -pub use linux_headers_asm_unistd::__NR_fstatfs; -pub use linux_headers_asm_unistd::__NR_truncate; -pub use linux_headers_asm_unistd::__NR_ftruncate; pub use linux_headers_asm_unistd::__NR_fallocate; pub use linux_headers_asm_unistd::__NR_faccessat; pub use linux_headers_asm_unistd::__NR_chdir; @@ -74,7 +95,6 @@ pub use linux_headers_asm_unistd::__NR_vhangup; pub use linux_headers_asm_unistd::__NR_pipe2; pub use linux_headers_asm_unistd::__NR_quotactl; pub use linux_headers_asm_unistd::__NR_getdents64; -pub use linux_headers_asm_unistd::__NR_lseek; pub use linux_headers_asm_unistd::__NR_read; pub use linux_headers_asm_unistd::__NR_write; pub use linux_headers_asm_unistd::__NR_readv; @@ -83,7 +103,6 @@ pub use linux_headers_asm_unistd::__NR_pread64; pub use linux_headers_asm_unistd::__NR_pwrite64; pub use linux_headers_asm_unistd::__NR_preadv; pub use linux_headers_asm_unistd::__NR_pwritev; -pub use linux_headers_asm_unistd::__NR_sendfile; pub use linux_headers_asm_unistd::__NR_pselect6; pub use linux_headers_asm_unistd::__NR_ppoll; pub use linux_headers_asm_unistd::__NR_signalfd4; @@ -91,8 +110,6 @@ pub use linux_headers_asm_unistd::__NR_vmsplice; pub use linux_headers_asm_unistd::__NR_splice; pub use linux_headers_asm_unistd::__NR_tee; pub use linux_headers_asm_unistd::__NR_readlinkat; -pub use linux_headers_asm_unistd::__NR_newfstatat; -pub use linux_headers_asm_unistd::__NR_fstat; pub use linux_headers_asm_unistd::__NR_sync; pub use linux_headers_asm_unistd::__NR_fsync; pub use linux_headers_asm_unistd::__NR_fdatasync; @@ -234,8 +251,6 @@ pub use linux_headers_asm_unistd::__NR_request_key; pub use linux_headers_asm_unistd::__NR_keyctl; pub use linux_headers_asm_unistd::__NR_clone; pub use linux_headers_asm_unistd::__NR_execve; -pub use linux_headers_asm_unistd::__NR_mmap; -pub use linux_headers_asm_unistd::__NR_fadvise64; pub use linux_headers_asm_unistd::__NR_swapon; pub use linux_headers_asm_unistd::__NR_swapoff; pub use linux_headers_asm_unistd::__NR_mprotect; @@ -256,6 +271,7 @@ pub use linux_headers_asm_unistd::__NR_rt_tgsigqueueinfo; pub use linux_headers_asm_unistd::__NR_perf_event_open; pub use linux_headers_asm_unistd::__NR_accept4; pub use linux_headers_asm_unistd::__NR_recvmmsg; +pub use linux_headers_asm_unistd::__NR_arch_specific_syscall; pub use linux_headers_asm_unistd::__NR_wait4; pub use linux_headers_asm_unistd::__NR_prlimit64; pub use linux_headers_asm_unistd::__NR_fanotify_init; @@ -295,141 +311,171 @@ pub use linux_headers_asm_unistd::__NR_pidfd_send_signal; pub use linux_headers_asm_unistd::__NR_io_uring_setup; pub use linux_headers_asm_unistd::__NR_io_uring_enter; pub use linux_headers_asm_unistd::__NR_io_uring_register; -pub use linux_headers_asm_unistd::__NR_open_tree; -pub use linux_headers_asm_unistd::__NR_move_mount; -pub use linux_headers_asm_unistd::__NR_fsopen; -pub use linux_headers_asm_unistd::__NR_fsconfig; -pub use linux_headers_asm_unistd::__NR_fsmount; -pub use linux_headers_asm_unistd::__NR_fspick; -pub use linux_headers_asm_unistd::__NR_pidfd_open; -pub use linux_headers_asm_unistd::__NR_clone3; -pub use linux_headers_asm_unistd::__NR_close_range; -pub use linux_headers_asm_unistd::__NR_openat2; -pub use linux_headers_asm_unistd::__NR_pidfd_getfd; -pub use linux_headers_asm_unistd::__NR_faccessat2; -pub use linux_headers_asm_unistd::__NR_process_madvise; -pub use linux_headers_asm_unistd::__NR_epoll_pwait2; -pub use linux_headers_asm_unistd::__NR_mount_setattr; -pub use linux_headers_asm_unistd::__NR_quotactl_fd; -pub use linux_headers_asm_unistd::__NR_landlock_create_ruleset; -pub use linux_headers_asm_unistd::__NR_landlock_add_rule; -pub use linux_headers_asm_unistd::__NR_landlock_restrict_self; -pub use linux_headers_asm_unistd::__NR_memfd_secret; -pub use linux_headers_asm_unistd::__NR_process_mrelease; -pub use linux_headers_asm_unistd::__NR_futex_waitv; -pub use linux_headers_asm_unistd::__NR_set_mempolicy_home_node; -pub use linux_headers_asm_unistd::__NR_cachestat; -pub use linux_headers_asm_unistd::__NR_fchmodat2; -pub use linux_headers_asm_unistd::__NR_map_shadow_stack; -pub use linux_headers_asm_unistd::__NR_futex_wake; -pub use linux_headers_asm_unistd::__NR_futex_wait; -pub use linux_headers_asm_unistd::__NR_futex_requeue; -pub use linux_headers_asm_unistd::__NR_statmount; -pub use linux_headers_asm_unistd::__NR_listmount; -pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; -pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; -pub use linux_headers_asm_unistd::__NR_lsm_list_modules; -pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_hwcap; -pub use linux_headers_asm_hwcap::HWCAP_FP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMD; -pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; -pub use linux_headers_asm_hwcap::HWCAP_AES; -pub use linux_headers_asm_hwcap::HWCAP_PMULL; -pub use linux_headers_asm_hwcap::HWCAP_SHA1; -pub use linux_headers_asm_hwcap::HWCAP_SHA2; -pub use linux_headers_asm_hwcap::HWCAP_CRC32; -pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; -pub use linux_headers_asm_hwcap::HWCAP_FPHP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; -pub use linux_headers_asm_hwcap::HWCAP_CPUID; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; -pub use linux_headers_asm_hwcap::HWCAP_JSCVT; -pub use linux_headers_asm_hwcap::HWCAP_FCMA; -pub use linux_headers_asm_hwcap::HWCAP_LRCPC; -pub use linux_headers_asm_hwcap::HWCAP_DCPOP; -pub use linux_headers_asm_hwcap::HWCAP_SHA3; -pub use linux_headers_asm_hwcap::HWCAP_SM3; -pub use linux_headers_asm_hwcap::HWCAP_SM4; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; -pub use linux_headers_asm_hwcap::HWCAP_SHA512; -pub use linux_headers_asm_hwcap::HWCAP_SVE; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; -pub use linux_headers_asm_hwcap::HWCAP_DIT; -pub use linux_headers_asm_hwcap::HWCAP_USCAT; -pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; -pub use linux_headers_asm_hwcap::HWCAP_FLAGM; -pub use linux_headers_asm_hwcap::HWCAP_SSBS; -pub use linux_headers_asm_hwcap::HWCAP_SB; -pub use linux_headers_asm_hwcap::HWCAP_PACA; -pub use linux_headers_asm_hwcap::HWCAP_PACG; -pub use linux_headers_asm_hwcap::HWCAP2_DCPODP; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2; -pub use linux_headers_asm_hwcap::HWCAP2_SVEAES; -pub use linux_headers_asm_hwcap::HWCAP2_SVEPMULL; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBITPERM; -pub use linux_headers_asm_hwcap::HWCAP2_SVESHA3; -pub use linux_headers_asm_hwcap::HWCAP2_SVESM4; -pub use linux_headers_asm_hwcap::HWCAP2_FLAGM2; -pub use linux_headers_asm_hwcap::HWCAP2_FRINT; -pub use linux_headers_asm_hwcap::HWCAP2_SVEI8MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF32MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF64MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBF16; -pub use linux_headers_asm_hwcap::HWCAP2_I8MM; -pub use linux_headers_asm_hwcap::HWCAP2_BF16; -pub use linux_headers_asm_hwcap::HWCAP2_DGH; -pub use linux_headers_asm_hwcap::HWCAP2_RNG; -pub use linux_headers_asm_hwcap::HWCAP2_BTI; -pub use linux_headers_asm_hwcap::HWCAP2_MTE; -pub use linux_headers_asm_hwcap::HWCAP2_ECV; -pub use linux_headers_asm_hwcap::HWCAP2_AFP; -pub use linux_headers_asm_hwcap::HWCAP2_RPRES; -pub use linux_headers_asm_hwcap::HWCAP2_MTE3; -pub use linux_headers_asm_hwcap::HWCAP2_SME; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F64F64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I8I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F32F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_FA64; -pub use linux_headers_asm_hwcap::HWCAP2_WFXT; -pub use linux_headers_asm_hwcap::HWCAP2_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_CSSC; -pub use linux_headers_asm_hwcap::HWCAP2_RPRFM; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME2; -pub use linux_headers_asm_hwcap::HWCAP2_SME2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_BI32I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F16; -pub use linux_headers_asm_hwcap::HWCAP2_MOPS; -pub use linux_headers_asm_hwcap::HWCAP2_HBC; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_LRCPC3; -pub use linux_headers_asm_hwcap::HWCAP2_LSE128; -pub use linux_headers_asm_hwcap::HWCAP2_FPMR; -pub use linux_headers_asm_hwcap::HWCAP2_LUT; -pub use linux_headers_asm_hwcap::HWCAP2_FAMINMAX; -pub use linux_headers_asm_hwcap::HWCAP2_F8CVT; -pub use linux_headers_asm_hwcap::HWCAP2_F8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_F8E4M3; -pub use linux_headers_asm_hwcap::HWCAP2_F8E5M2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_LUTV2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_POE; -mod sys_auxv; -pub use sys_auxv::getauxval; +pub use linux_headers_asm_unistd::__NR_syscalls; +pub use linux_headers_asm_unistd::__NR_fcntl; +pub use linux_headers_asm_unistd::__NR_statfs; +pub use linux_headers_asm_unistd::__NR_fstatfs; +pub use linux_headers_asm_unistd::__NR_truncate; +pub use linux_headers_asm_unistd::__NR_ftruncate; +pub use linux_headers_asm_unistd::__NR_lseek; +pub use linux_headers_asm_unistd::__NR_sendfile; +pub use linux_headers_asm_unistd::__NR_newfstatat; +pub use linux_headers_asm_unistd::__NR_fstat; +pub use linux_headers_asm_unistd::__NR_mmap; +pub use linux_headers_asm_unistd::__NR_fadvise64; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/sys_auxv.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/sys_auxv.rs index aeae8561..1fe1c678 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/sys_auxv.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(__type: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/sys_prctl.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/sys_prctl.rs new file mode 100644 index 00000000..2daf3d5a --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(__option: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/unistd.rs b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/unistd.rs new file mode 100644 index 00000000..eab78d00 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_gnu_ilp32/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(__sysno: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/aarch64_linux_musl/dlfcn.rs b/tests/helper/src/gen/sys/aarch64_linux_musl/dlfcn.rs new file mode 100644 index 00000000..87cb3e98 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_musl/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + arg1: *mut ::core::ffi::c_void, + arg2: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/aarch64_linux_musl/elf.rs b/tests/helper/src/gen/sys/aarch64_linux_musl/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_musl/elf.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_musl/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_asm_hwcap.rs b/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_asm_hwcap.rs index 1473f4ef..3b593c9f 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_asm_hwcap.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_asm_hwcap.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const HWCAP_FP: u32 = 1; pub const HWCAP_ASIMD: u32 = 2; pub const HWCAP_EVTSTRM: u32 = 4; diff --git a/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_asm_unistd.rs index aa756e7f..3d00edab 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_io_setup: u32 = 0; pub const __NR_io_destroy: u32 = 1; pub const __NR_io_submit: u32 = 2; diff --git a/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_linux_auxvec.rs index 2b4a98be..da867dd1 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_linux_auxvec.rs @@ -3,7 +3,35 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 2; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_musl/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/aarch64_linux_musl/mod.rs b/tests/helper/src/gen/sys/aarch64_linux_musl/mod.rs index bf89e901..ffacccce 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_musl/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_musl/mod.rs @@ -4,13 +4,103 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_hwcap; +pub use linux_headers_asm_hwcap::HWCAP_FP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMD; +pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; +pub use linux_headers_asm_hwcap::HWCAP_AES; +pub use linux_headers_asm_hwcap::HWCAP_PMULL; +pub use linux_headers_asm_hwcap::HWCAP_SHA1; +pub use linux_headers_asm_hwcap::HWCAP_SHA2; +pub use linux_headers_asm_hwcap::HWCAP_CRC32; +pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; +pub use linux_headers_asm_hwcap::HWCAP_FPHP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; +pub use linux_headers_asm_hwcap::HWCAP_CPUID; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; +pub use linux_headers_asm_hwcap::HWCAP_JSCVT; +pub use linux_headers_asm_hwcap::HWCAP_FCMA; +pub use linux_headers_asm_hwcap::HWCAP_LRCPC; +pub use linux_headers_asm_hwcap::HWCAP_DCPOP; +pub use linux_headers_asm_hwcap::HWCAP_SHA3; +pub use linux_headers_asm_hwcap::HWCAP_SM3; +pub use linux_headers_asm_hwcap::HWCAP_SM4; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; +pub use linux_headers_asm_hwcap::HWCAP_SHA512; +pub use linux_headers_asm_hwcap::HWCAP_SVE; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; +pub use linux_headers_asm_hwcap::HWCAP_DIT; +pub use linux_headers_asm_hwcap::HWCAP_USCAT; +pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; +pub use linux_headers_asm_hwcap::HWCAP_FLAGM; +pub use linux_headers_asm_hwcap::HWCAP_SSBS; +pub use linux_headers_asm_hwcap::HWCAP_SB; +pub use linux_headers_asm_hwcap::HWCAP_PACA; +pub use linux_headers_asm_hwcap::HWCAP_PACG; +pub use linux_headers_asm_hwcap::HWCAP2_DCPODP; +pub use linux_headers_asm_hwcap::HWCAP2_SVE2; +pub use linux_headers_asm_hwcap::HWCAP2_SVEAES; +pub use linux_headers_asm_hwcap::HWCAP2_SVEPMULL; +pub use linux_headers_asm_hwcap::HWCAP2_SVEBITPERM; +pub use linux_headers_asm_hwcap::HWCAP2_SVESHA3; +pub use linux_headers_asm_hwcap::HWCAP2_SVESM4; +pub use linux_headers_asm_hwcap::HWCAP2_FLAGM2; +pub use linux_headers_asm_hwcap::HWCAP2_FRINT; +pub use linux_headers_asm_hwcap::HWCAP2_SVEI8MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEF32MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEF64MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEBF16; +pub use linux_headers_asm_hwcap::HWCAP2_I8MM; +pub use linux_headers_asm_hwcap::HWCAP2_BF16; +pub use linux_headers_asm_hwcap::HWCAP2_DGH; +pub use linux_headers_asm_hwcap::HWCAP2_RNG; +pub use linux_headers_asm_hwcap::HWCAP2_BTI; +pub use linux_headers_asm_hwcap::HWCAP2_MTE; +pub use linux_headers_asm_hwcap::HWCAP2_ECV; +pub use linux_headers_asm_hwcap::HWCAP2_AFP; +pub use linux_headers_asm_hwcap::HWCAP2_RPRES; +pub use linux_headers_asm_hwcap::HWCAP2_MTE3; +pub use linux_headers_asm_hwcap::HWCAP2_SME; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I64; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F64F64; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I8I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_B16F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F32F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_FA64; +pub use linux_headers_asm_hwcap::HWCAP2_WFXT; +pub use linux_headers_asm_hwcap::HWCAP2_EBF16; +pub use linux_headers_asm_hwcap::HWCAP2_SVE_EBF16; +pub use linux_headers_asm_hwcap::HWCAP2_CSSC; +pub use linux_headers_asm_hwcap::HWCAP2_RPRFM; +pub use linux_headers_asm_hwcap::HWCAP2_SVE2P1; +pub use linux_headers_asm_hwcap::HWCAP2_SME2; +pub use linux_headers_asm_hwcap::HWCAP2_SME2P1; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_BI32I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_B16B16; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F16; +pub use linux_headers_asm_hwcap::HWCAP2_MOPS; +pub use linux_headers_asm_hwcap::HWCAP2_HBC; +pub use linux_headers_asm_hwcap::HWCAP2_SVE_B16B16; +pub use linux_headers_asm_hwcap::HWCAP2_LRCPC3; +pub use linux_headers_asm_hwcap::HWCAP2_LSE128; +pub use linux_headers_asm_hwcap::HWCAP2_FPMR; +pub use linux_headers_asm_hwcap::HWCAP2_LUT; +pub use linux_headers_asm_hwcap::HWCAP2_FAMINMAX; +pub use linux_headers_asm_hwcap::HWCAP2_F8CVT; +pub use linux_headers_asm_hwcap::HWCAP2_F8FMA; +pub use linux_headers_asm_hwcap::HWCAP2_F8DP4; +pub use linux_headers_asm_hwcap::HWCAP2_F8DP2; +pub use linux_headers_asm_hwcap::HWCAP2_F8E4M3; +pub use linux_headers_asm_hwcap::HWCAP2_F8E5M2; +pub use linux_headers_asm_hwcap::HWCAP2_SME_LUTV2; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F16; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8FMA; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP4; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP2; +pub use linux_headers_asm_hwcap::HWCAP2_POE; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_io_setup; pub use linux_headers_asm_unistd::__NR_io_destroy; @@ -330,106 +420,230 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_hwcap; -pub use linux_headers_asm_hwcap::HWCAP_FP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMD; -pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; -pub use linux_headers_asm_hwcap::HWCAP_AES; -pub use linux_headers_asm_hwcap::HWCAP_PMULL; -pub use linux_headers_asm_hwcap::HWCAP_SHA1; -pub use linux_headers_asm_hwcap::HWCAP_SHA2; -pub use linux_headers_asm_hwcap::HWCAP_CRC32; -pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; -pub use linux_headers_asm_hwcap::HWCAP_FPHP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; -pub use linux_headers_asm_hwcap::HWCAP_CPUID; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; -pub use linux_headers_asm_hwcap::HWCAP_JSCVT; -pub use linux_headers_asm_hwcap::HWCAP_FCMA; -pub use linux_headers_asm_hwcap::HWCAP_LRCPC; -pub use linux_headers_asm_hwcap::HWCAP_DCPOP; -pub use linux_headers_asm_hwcap::HWCAP_SHA3; -pub use linux_headers_asm_hwcap::HWCAP_SM3; -pub use linux_headers_asm_hwcap::HWCAP_SM4; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; -pub use linux_headers_asm_hwcap::HWCAP_SHA512; -pub use linux_headers_asm_hwcap::HWCAP_SVE; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; -pub use linux_headers_asm_hwcap::HWCAP_DIT; -pub use linux_headers_asm_hwcap::HWCAP_USCAT; -pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; -pub use linux_headers_asm_hwcap::HWCAP_FLAGM; -pub use linux_headers_asm_hwcap::HWCAP_SSBS; -pub use linux_headers_asm_hwcap::HWCAP_SB; -pub use linux_headers_asm_hwcap::HWCAP_PACA; -pub use linux_headers_asm_hwcap::HWCAP_PACG; -pub use linux_headers_asm_hwcap::HWCAP2_DCPODP; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2; -pub use linux_headers_asm_hwcap::HWCAP2_SVEAES; -pub use linux_headers_asm_hwcap::HWCAP2_SVEPMULL; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBITPERM; -pub use linux_headers_asm_hwcap::HWCAP2_SVESHA3; -pub use linux_headers_asm_hwcap::HWCAP2_SVESM4; -pub use linux_headers_asm_hwcap::HWCAP2_FLAGM2; -pub use linux_headers_asm_hwcap::HWCAP2_FRINT; -pub use linux_headers_asm_hwcap::HWCAP2_SVEI8MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF32MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF64MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBF16; -pub use linux_headers_asm_hwcap::HWCAP2_I8MM; -pub use linux_headers_asm_hwcap::HWCAP2_BF16; -pub use linux_headers_asm_hwcap::HWCAP2_DGH; -pub use linux_headers_asm_hwcap::HWCAP2_RNG; -pub use linux_headers_asm_hwcap::HWCAP2_BTI; -pub use linux_headers_asm_hwcap::HWCAP2_MTE; -pub use linux_headers_asm_hwcap::HWCAP2_ECV; -pub use linux_headers_asm_hwcap::HWCAP2_AFP; -pub use linux_headers_asm_hwcap::HWCAP2_RPRES; -pub use linux_headers_asm_hwcap::HWCAP2_MTE3; -pub use linux_headers_asm_hwcap::HWCAP2_SME; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F64F64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I8I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F32F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_FA64; -pub use linux_headers_asm_hwcap::HWCAP2_WFXT; -pub use linux_headers_asm_hwcap::HWCAP2_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_CSSC; -pub use linux_headers_asm_hwcap::HWCAP2_RPRFM; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME2; -pub use linux_headers_asm_hwcap::HWCAP2_SME2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_BI32I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F16; -pub use linux_headers_asm_hwcap::HWCAP2_MOPS; -pub use linux_headers_asm_hwcap::HWCAP2_HBC; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_LRCPC3; -pub use linux_headers_asm_hwcap::HWCAP2_LSE128; -pub use linux_headers_asm_hwcap::HWCAP2_FPMR; -pub use linux_headers_asm_hwcap::HWCAP2_LUT; -pub use linux_headers_asm_hwcap::HWCAP2_FAMINMAX; -pub use linux_headers_asm_hwcap::HWCAP2_F8CVT; -pub use linux_headers_asm_hwcap::HWCAP2_F8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_F8E4M3; -pub use linux_headers_asm_hwcap::HWCAP2_F8E5M2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_LUTV2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_POE; -mod sys_auxv; -pub use sys_auxv::getauxval; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/aarch64_linux_musl/sys_auxv.rs b/tests/helper/src/gen/sys/aarch64_linux_musl/sys_auxv.rs index b6d1eb82..fc602aeb 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_musl/sys_auxv.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_musl/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(arg1: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/aarch64_linux_musl/sys_prctl.rs b/tests/helper/src/gen/sys/aarch64_linux_musl/sys_prctl.rs new file mode 100644 index 00000000..89f0295b --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_musl/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/aarch64_linux_musl/unistd.rs b/tests/helper/src/gen/sys/aarch64_linux_musl/unistd.rs new file mode 100644 index 00000000..d16be956 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_musl/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(arg1: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/aarch64_linux_uclibc/dlfcn.rs b/tests/helper/src/gen/sys/aarch64_linux_uclibc/dlfcn.rs new file mode 100644 index 00000000..0c516f36 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_uclibc/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + __handle: *mut ::core::ffi::c_void, + __name: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/aarch64_linux_uclibc/elf.rs b/tests/helper/src/gen/sys/aarch64_linux_uclibc/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_uclibc/elf.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_uclibc/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_asm_hwcap.rs b/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_asm_hwcap.rs index 1473f4ef..3b593c9f 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_asm_hwcap.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_asm_hwcap.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const HWCAP_FP: u32 = 1; pub const HWCAP_ASIMD: u32 = 2; pub const HWCAP_EVTSTRM: u32 = 4; diff --git a/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_asm_unistd.rs index aa756e7f..3d00edab 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_io_setup: u32 = 0; pub const __NR_io_destroy: u32 = 1; pub const __NR_io_submit: u32 = 2; diff --git a/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_linux_auxvec.rs index 2b4a98be..da867dd1 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_linux_auxvec.rs @@ -3,7 +3,35 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 2; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_uclibc/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/aarch64_linux_uclibc/mod.rs b/tests/helper/src/gen/sys/aarch64_linux_uclibc/mod.rs index bf89e901..ffacccce 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_uclibc/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_uclibc/mod.rs @@ -4,13 +4,103 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_hwcap; +pub use linux_headers_asm_hwcap::HWCAP_FP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMD; +pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; +pub use linux_headers_asm_hwcap::HWCAP_AES; +pub use linux_headers_asm_hwcap::HWCAP_PMULL; +pub use linux_headers_asm_hwcap::HWCAP_SHA1; +pub use linux_headers_asm_hwcap::HWCAP_SHA2; +pub use linux_headers_asm_hwcap::HWCAP_CRC32; +pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; +pub use linux_headers_asm_hwcap::HWCAP_FPHP; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; +pub use linux_headers_asm_hwcap::HWCAP_CPUID; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; +pub use linux_headers_asm_hwcap::HWCAP_JSCVT; +pub use linux_headers_asm_hwcap::HWCAP_FCMA; +pub use linux_headers_asm_hwcap::HWCAP_LRCPC; +pub use linux_headers_asm_hwcap::HWCAP_DCPOP; +pub use linux_headers_asm_hwcap::HWCAP_SHA3; +pub use linux_headers_asm_hwcap::HWCAP_SM3; +pub use linux_headers_asm_hwcap::HWCAP_SM4; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; +pub use linux_headers_asm_hwcap::HWCAP_SHA512; +pub use linux_headers_asm_hwcap::HWCAP_SVE; +pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; +pub use linux_headers_asm_hwcap::HWCAP_DIT; +pub use linux_headers_asm_hwcap::HWCAP_USCAT; +pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; +pub use linux_headers_asm_hwcap::HWCAP_FLAGM; +pub use linux_headers_asm_hwcap::HWCAP_SSBS; +pub use linux_headers_asm_hwcap::HWCAP_SB; +pub use linux_headers_asm_hwcap::HWCAP_PACA; +pub use linux_headers_asm_hwcap::HWCAP_PACG; +pub use linux_headers_asm_hwcap::HWCAP2_DCPODP; +pub use linux_headers_asm_hwcap::HWCAP2_SVE2; +pub use linux_headers_asm_hwcap::HWCAP2_SVEAES; +pub use linux_headers_asm_hwcap::HWCAP2_SVEPMULL; +pub use linux_headers_asm_hwcap::HWCAP2_SVEBITPERM; +pub use linux_headers_asm_hwcap::HWCAP2_SVESHA3; +pub use linux_headers_asm_hwcap::HWCAP2_SVESM4; +pub use linux_headers_asm_hwcap::HWCAP2_FLAGM2; +pub use linux_headers_asm_hwcap::HWCAP2_FRINT; +pub use linux_headers_asm_hwcap::HWCAP2_SVEI8MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEF32MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEF64MM; +pub use linux_headers_asm_hwcap::HWCAP2_SVEBF16; +pub use linux_headers_asm_hwcap::HWCAP2_I8MM; +pub use linux_headers_asm_hwcap::HWCAP2_BF16; +pub use linux_headers_asm_hwcap::HWCAP2_DGH; +pub use linux_headers_asm_hwcap::HWCAP2_RNG; +pub use linux_headers_asm_hwcap::HWCAP2_BTI; +pub use linux_headers_asm_hwcap::HWCAP2_MTE; +pub use linux_headers_asm_hwcap::HWCAP2_ECV; +pub use linux_headers_asm_hwcap::HWCAP2_AFP; +pub use linux_headers_asm_hwcap::HWCAP2_RPRES; +pub use linux_headers_asm_hwcap::HWCAP2_MTE3; +pub use linux_headers_asm_hwcap::HWCAP2_SME; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I64; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F64F64; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I8I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_B16F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F32F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_FA64; +pub use linux_headers_asm_hwcap::HWCAP2_WFXT; +pub use linux_headers_asm_hwcap::HWCAP2_EBF16; +pub use linux_headers_asm_hwcap::HWCAP2_SVE_EBF16; +pub use linux_headers_asm_hwcap::HWCAP2_CSSC; +pub use linux_headers_asm_hwcap::HWCAP2_RPRFM; +pub use linux_headers_asm_hwcap::HWCAP2_SVE2P1; +pub use linux_headers_asm_hwcap::HWCAP2_SME2; +pub use linux_headers_asm_hwcap::HWCAP2_SME2P1; +pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_BI32I32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_B16B16; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F16; +pub use linux_headers_asm_hwcap::HWCAP2_MOPS; +pub use linux_headers_asm_hwcap::HWCAP2_HBC; +pub use linux_headers_asm_hwcap::HWCAP2_SVE_B16B16; +pub use linux_headers_asm_hwcap::HWCAP2_LRCPC3; +pub use linux_headers_asm_hwcap::HWCAP2_LSE128; +pub use linux_headers_asm_hwcap::HWCAP2_FPMR; +pub use linux_headers_asm_hwcap::HWCAP2_LUT; +pub use linux_headers_asm_hwcap::HWCAP2_FAMINMAX; +pub use linux_headers_asm_hwcap::HWCAP2_F8CVT; +pub use linux_headers_asm_hwcap::HWCAP2_F8FMA; +pub use linux_headers_asm_hwcap::HWCAP2_F8DP4; +pub use linux_headers_asm_hwcap::HWCAP2_F8DP2; +pub use linux_headers_asm_hwcap::HWCAP2_F8E4M3; +pub use linux_headers_asm_hwcap::HWCAP2_F8E5M2; +pub use linux_headers_asm_hwcap::HWCAP2_SME_LUTV2; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F16; +pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F32; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8FMA; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP4; +pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP2; +pub use linux_headers_asm_hwcap::HWCAP2_POE; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_io_setup; pub use linux_headers_asm_unistd::__NR_io_destroy; @@ -330,106 +420,230 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_hwcap; -pub use linux_headers_asm_hwcap::HWCAP_FP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMD; -pub use linux_headers_asm_hwcap::HWCAP_EVTSTRM; -pub use linux_headers_asm_hwcap::HWCAP_AES; -pub use linux_headers_asm_hwcap::HWCAP_PMULL; -pub use linux_headers_asm_hwcap::HWCAP_SHA1; -pub use linux_headers_asm_hwcap::HWCAP_SHA2; -pub use linux_headers_asm_hwcap::HWCAP_CRC32; -pub use linux_headers_asm_hwcap::HWCAP_ATOMICS; -pub use linux_headers_asm_hwcap::HWCAP_FPHP; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDHP; -pub use linux_headers_asm_hwcap::HWCAP_CPUID; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDRDM; -pub use linux_headers_asm_hwcap::HWCAP_JSCVT; -pub use linux_headers_asm_hwcap::HWCAP_FCMA; -pub use linux_headers_asm_hwcap::HWCAP_LRCPC; -pub use linux_headers_asm_hwcap::HWCAP_DCPOP; -pub use linux_headers_asm_hwcap::HWCAP_SHA3; -pub use linux_headers_asm_hwcap::HWCAP_SM3; -pub use linux_headers_asm_hwcap::HWCAP_SM4; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDDP; -pub use linux_headers_asm_hwcap::HWCAP_SHA512; -pub use linux_headers_asm_hwcap::HWCAP_SVE; -pub use linux_headers_asm_hwcap::HWCAP_ASIMDFHM; -pub use linux_headers_asm_hwcap::HWCAP_DIT; -pub use linux_headers_asm_hwcap::HWCAP_USCAT; -pub use linux_headers_asm_hwcap::HWCAP_ILRCPC; -pub use linux_headers_asm_hwcap::HWCAP_FLAGM; -pub use linux_headers_asm_hwcap::HWCAP_SSBS; -pub use linux_headers_asm_hwcap::HWCAP_SB; -pub use linux_headers_asm_hwcap::HWCAP_PACA; -pub use linux_headers_asm_hwcap::HWCAP_PACG; -pub use linux_headers_asm_hwcap::HWCAP2_DCPODP; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2; -pub use linux_headers_asm_hwcap::HWCAP2_SVEAES; -pub use linux_headers_asm_hwcap::HWCAP2_SVEPMULL; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBITPERM; -pub use linux_headers_asm_hwcap::HWCAP2_SVESHA3; -pub use linux_headers_asm_hwcap::HWCAP2_SVESM4; -pub use linux_headers_asm_hwcap::HWCAP2_FLAGM2; -pub use linux_headers_asm_hwcap::HWCAP2_FRINT; -pub use linux_headers_asm_hwcap::HWCAP2_SVEI8MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF32MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEF64MM; -pub use linux_headers_asm_hwcap::HWCAP2_SVEBF16; -pub use linux_headers_asm_hwcap::HWCAP2_I8MM; -pub use linux_headers_asm_hwcap::HWCAP2_BF16; -pub use linux_headers_asm_hwcap::HWCAP2_DGH; -pub use linux_headers_asm_hwcap::HWCAP2_RNG; -pub use linux_headers_asm_hwcap::HWCAP2_BTI; -pub use linux_headers_asm_hwcap::HWCAP2_MTE; -pub use linux_headers_asm_hwcap::HWCAP2_ECV; -pub use linux_headers_asm_hwcap::HWCAP2_AFP; -pub use linux_headers_asm_hwcap::HWCAP2_RPRES; -pub use linux_headers_asm_hwcap::HWCAP2_MTE3; -pub use linux_headers_asm_hwcap::HWCAP2_SME; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F64F64; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I8I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F32F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_FA64; -pub use linux_headers_asm_hwcap::HWCAP2_WFXT; -pub use linux_headers_asm_hwcap::HWCAP2_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_EBF16; -pub use linux_headers_asm_hwcap::HWCAP2_CSSC; -pub use linux_headers_asm_hwcap::HWCAP2_RPRFM; -pub use linux_headers_asm_hwcap::HWCAP2_SVE2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME2; -pub use linux_headers_asm_hwcap::HWCAP2_SME2P1; -pub use linux_headers_asm_hwcap::HWCAP2_SME_I16I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_BI32I32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F16F16; -pub use linux_headers_asm_hwcap::HWCAP2_MOPS; -pub use linux_headers_asm_hwcap::HWCAP2_HBC; -pub use linux_headers_asm_hwcap::HWCAP2_SVE_B16B16; -pub use linux_headers_asm_hwcap::HWCAP2_LRCPC3; -pub use linux_headers_asm_hwcap::HWCAP2_LSE128; -pub use linux_headers_asm_hwcap::HWCAP2_FPMR; -pub use linux_headers_asm_hwcap::HWCAP2_LUT; -pub use linux_headers_asm_hwcap::HWCAP2_FAMINMAX; -pub use linux_headers_asm_hwcap::HWCAP2_F8CVT; -pub use linux_headers_asm_hwcap::HWCAP2_F8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_F8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_F8E4M3; -pub use linux_headers_asm_hwcap::HWCAP2_F8E5M2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_LUTV2; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F16; -pub use linux_headers_asm_hwcap::HWCAP2_SME_F8F32; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8FMA; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP4; -pub use linux_headers_asm_hwcap::HWCAP2_SME_SF8DP2; -pub use linux_headers_asm_hwcap::HWCAP2_POE; -mod sys_auxv; -pub use sys_auxv::getauxval; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/aarch64_linux_uclibc/sys_auxv.rs b/tests/helper/src/gen/sys/aarch64_linux_uclibc/sys_auxv.rs index aeae8561..1fe1c678 100644 --- a/tests/helper/src/gen/sys/aarch64_linux_uclibc/sys_auxv.rs +++ b/tests/helper/src/gen/sys/aarch64_linux_uclibc/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(__type: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/aarch64_linux_uclibc/sys_prctl.rs b/tests/helper/src/gen/sys/aarch64_linux_uclibc/sys_prctl.rs new file mode 100644 index 00000000..2daf3d5a --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_uclibc/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(__option: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/aarch64_linux_uclibc/unistd.rs b/tests/helper/src/gen/sys/aarch64_linux_uclibc/unistd.rs new file mode 100644 index 00000000..eab78d00 --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_linux_uclibc/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(__sysno: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/aarch64_netbsd/aarch64_armreg.rs b/tests/helper/src/gen/sys/aarch64_netbsd/machine_armreg.rs similarity index 95% rename from tests/helper/src/gen/sys/aarch64_netbsd/aarch64_armreg.rs rename to tests/helper/src/gen/sys/aarch64_netbsd/machine_armreg.rs index 309ef9dc..552c2eed 100644 --- a/tests/helper/src/gen/sys/aarch64_netbsd/aarch64_armreg.rs +++ b/tests/helper/src/gen/sys/aarch64_netbsd/machine_armreg.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct aarch64_sysctl_cpu_id { diff --git a/tests/helper/src/gen/sys/aarch64_netbsd/mod.rs b/tests/helper/src/gen/sys/aarch64_netbsd/mod.rs index 02232ce2..bee636ff 100644 --- a/tests/helper/src/gen/sys/aarch64_netbsd/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_netbsd/mod.rs @@ -4,12 +4,6 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod sys_sysctl; -pub use sys_sysctl::SYSCTL_VERS_1; -pub use sys_sysctl::CTL_QUERY; -pub use sys_sysctl::sysctl; -pub use sys_sysctl::sysctlbyname; -pub use sys_sysctl::sysctlnode; mod sys_syscall; pub use sys_syscall::SYS_MAXSYSARGS; pub use sys_syscall::SYS_syscall; @@ -469,6 +463,12 @@ pub use sys_syscall::SYS_epoll_pwait2; pub use sys_syscall::SYS___dup3100; pub use sys_syscall::SYS_MAXSYSCALL; pub use sys_syscall::SYS_NSYSENT; -mod aarch64_armreg; -pub use aarch64_armreg::aarch64_sysctl_cpu_id; +mod sys_sysctl; +pub use sys_sysctl::SYSCTL_VERS_1; +pub use sys_sysctl::SYSCTL_VERSION; +pub use sys_sysctl::CTL_QUERY; +pub use sys_sysctl::sysctlbyname; +pub use sys_sysctl::sysctlnode; +mod machine_armreg; +pub use machine_armreg::aarch64_sysctl_cpu_id; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/aarch64_netbsd/sys_syscall.rs b/tests/helper/src/gen/sys/aarch64_netbsd/sys_syscall.rs index d669c979..fc14a1d5 100644 --- a/tests/helper/src/gen/sys/aarch64_netbsd/sys_syscall.rs +++ b/tests/helper/src/gen/sys/aarch64_netbsd/sys_syscall.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const SYS_MAXSYSARGS: u32 = 8; pub const SYS_syscall: u32 = 0; pub const SYS_exit: u32 = 1; diff --git a/tests/helper/src/gen/sys/aarch64_netbsd/sys_sysctl.rs b/tests/helper/src/gen/sys/aarch64_netbsd/sys_sysctl.rs index ec31b214..684719b9 100644 --- a/tests/helper/src/gen/sys/aarch64_netbsd/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/aarch64_netbsd/sys_sysctl.rs @@ -3,21 +3,13 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. -pub type u_int = ::std::os::raw::c_uint; +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type u_quad_t = u64; pub const SYSCTL_VERS_1: u32 = 16777216; +pub const SYSCTL_VERSION: u32 = 16777216; pub const CTL_QUERY: i32 = -2; pub type sysctlfn = *mut ::core::ffi::c_void; -extern "C" { - pub fn sysctl( - arg1: *const ::std::os::raw::c_int, - arg2: u_int, - arg3: *mut ::core::ffi::c_void, - arg4: *mut usize, - arg5: *const ::core::ffi::c_void, - arg6: usize, - ) -> ::std::os::raw::c_int; -} extern "C" { pub fn sysctlbyname( arg1: *const ::std::os::raw::c_char, diff --git a/tests/helper/src/gen/sys/aarch64_openbsd/dlfcn.rs b/tests/helper/src/gen/sys/aarch64_openbsd/dlfcn.rs new file mode 100644 index 00000000..e7bac10c --- /dev/null +++ b/tests/helper/src/gen/sys/aarch64_openbsd/dlfcn.rs @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = -2i8 + as *mut ::std::os::raw::c_void; +extern "C" { + pub fn dlsym( + arg1: *mut ::core::ffi::c_void, + arg2: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/aarch64_openbsd/machine_cpu.rs b/tests/helper/src/gen/sys/aarch64_openbsd/machine_cpu.rs index ffcf9317..9106cb72 100644 --- a/tests/helper/src/gen/sys/aarch64_openbsd/machine_cpu.rs +++ b/tests/helper/src/gen/sys/aarch64_openbsd/machine_cpu.rs @@ -3,6 +3,9 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const CPU_COMPATIBLE: u32 = 1; pub const CPU_ID_AA64ISAR0: u32 = 2; pub const CPU_ID_AA64ISAR1: u32 = 3; pub const CPU_ID_AA64ISAR2: u32 = 4; @@ -13,3 +16,5 @@ pub const CPU_ID_AA64PFR0: u32 = 8; pub const CPU_ID_AA64PFR1: u32 = 9; pub const CPU_ID_AA64SMFR0: u32 = 10; pub const CPU_ID_AA64ZFR0: u32 = 11; +pub const CPU_LIDACTION: u32 = 12; +pub const CPU_MAXID: u32 = 13; diff --git a/tests/helper/src/gen/sys/aarch64_openbsd/machine_elf.rs b/tests/helper/src/gen/sys/aarch64_openbsd/machine_elf.rs index e57b3696..bea094f9 100644 --- a/tests/helper/src/gen/sys/aarch64_openbsd/machine_elf.rs +++ b/tests/helper/src/gen/sys/aarch64_openbsd/machine_elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const HWCAP_FP: u32 = 1; pub const HWCAP_ASIMD: u32 = 2; pub const HWCAP_EVTSTRM: u32 = 4; diff --git a/tests/helper/src/gen/sys/aarch64_openbsd/mod.rs b/tests/helper/src/gen/sys/aarch64_openbsd/mod.rs index 9fb873ea..44ed8446 100644 --- a/tests/helper/src/gen/sys/aarch64_openbsd/mod.rs +++ b/tests/helper/src/gen/sys/aarch64_openbsd/mod.rs @@ -4,14 +4,22 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod sys_sysctl; -pub use sys_sysctl::CTL_MACHDEP; -pub use sys_sysctl::sysctl; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod sys_auxv; +pub use sys_auxv::AT_NULL; +pub use sys_auxv::AT_IGNORE; +pub use sys_auxv::AT_PAGESZ; pub use sys_auxv::AT_HWCAP; pub use sys_auxv::AT_HWCAP2; +pub use sys_auxv::AT_COUNT; pub use sys_auxv::elf_aux_info; +mod sys_sysctl; +pub use sys_sysctl::CTL_MACHDEP; +pub use sys_sysctl::sysctl; mod machine_cpu; +pub use machine_cpu::CPU_COMPATIBLE; pub use machine_cpu::CPU_ID_AA64ISAR0; pub use machine_cpu::CPU_ID_AA64ISAR1; pub use machine_cpu::CPU_ID_AA64ISAR2; @@ -22,6 +30,8 @@ pub use machine_cpu::CPU_ID_AA64PFR0; pub use machine_cpu::CPU_ID_AA64PFR1; pub use machine_cpu::CPU_ID_AA64SMFR0; pub use machine_cpu::CPU_ID_AA64ZFR0; +pub use machine_cpu::CPU_LIDACTION; +pub use machine_cpu::CPU_MAXID; mod machine_elf; pub use machine_elf::HWCAP_FP; pub use machine_elf::HWCAP_ASIMD; diff --git a/tests/helper/src/gen/sys/aarch64_openbsd/sys_auxv.rs b/tests/helper/src/gen/sys/aarch64_openbsd/sys_auxv.rs index edb66f8b..b2dc7e1e 100644 --- a/tests/helper/src/gen/sys/aarch64_openbsd/sys_auxv.rs +++ b/tests/helper/src/gen/sys/aarch64_openbsd/sys_auxv.rs @@ -3,8 +3,14 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_PAGESZ: u32 = 6; pub const AT_HWCAP: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_COUNT: u32 = 27; extern "C" { pub fn elf_aux_info( aux: ::std::os::raw::c_int, diff --git a/tests/helper/src/gen/sys/aarch64_openbsd/sys_sysctl.rs b/tests/helper/src/gen/sys/aarch64_openbsd/sys_sysctl.rs index 1cbc15c8..23078453 100644 --- a/tests/helper/src/gen/sys/aarch64_openbsd/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/aarch64_openbsd/sys_sysctl.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type u_int = ::std::os::raw::c_uint; pub const CTL_MACHDEP: u32 = 7; extern "C" { diff --git a/tests/helper/src/gen/sys/arm64_32_apple_watchos/mod.rs b/tests/helper/src/gen/sys/arm64_32_apple_watchos/mod.rs index b6c6f45b..861fb8dd 100644 --- a/tests/helper/src/gen/sys/arm64_32_apple_watchos/mod.rs +++ b/tests/helper/src/gen/sys/arm64_32_apple_watchos/mod.rs @@ -5,5 +5,6 @@ #![cfg_attr(rustfmt, rustfmt::skip)] mod sys_sysctl; +pub use sys_sysctl::CTL_MAXNAME; pub use sys_sysctl::sysctlbyname; pub type c_char = i8; diff --git a/tests/helper/src/gen/sys/arm64_32_apple_watchos/sys_sysctl.rs b/tests/helper/src/gen/sys/arm64_32_apple_watchos/sys_sysctl.rs index adb6abaa..ee017fc1 100644 --- a/tests/helper/src/gen/sys/arm64_32_apple_watchos/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/arm64_32_apple_watchos/sys_sysctl.rs @@ -3,12 +3,15 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const CTL_MAXNAME: u32 = 12; extern "C" { pub fn sysctlbyname( arg1: *const ::std::os::raw::c_char, arg2: *mut ::core::ffi::c_void, - arg3: *mut usize, - arg4: *mut ::core::ffi::c_void, - arg5: usize, + oldlenp: *mut usize, + arg3: *mut ::core::ffi::c_void, + newlen: usize, ) -> ::std::os::raw::c_int; } diff --git a/tests/helper/src/gen/sys/mod.rs b/tests/helper/src/gen/sys/mod.rs index 4f5b00ba..734b1eb0 100644 --- a/tests/helper/src/gen/sys/mod.rs +++ b/tests/helper/src/gen/sys/mod.rs @@ -9,6 +9,7 @@ non_camel_case_types, non_upper_case_globals, unreachable_pub, + clippy::cast_sign_loss, clippy::pub_underscore_fields, clippy::unnecessary_cast, )] @@ -94,102 +95,104 @@ mod aarch64_be_linux_gnu_ilp32; pub use aarch64_be_linux_gnu_ilp32::*; #[cfg( all( - target_arch = "aarch64", + target_arch = "powerpc64", target_os = "linux", - target_env = "musl", - target_endian = "little", + target_env = "gnu", + target_endian = "big", target_pointer_width = "64" ) )] -mod aarch64_linux_musl; +mod powerpc64_linux_gnu; #[cfg( all( - target_arch = "aarch64", + target_arch = "powerpc64", target_os = "linux", - target_env = "musl", - target_endian = "little", + target_env = "gnu", + target_endian = "big", target_pointer_width = "64" ) )] -pub use aarch64_linux_musl::*; +pub use powerpc64_linux_gnu::*; #[cfg( all( - target_arch = "aarch64", + target_arch = "powerpc64", target_os = "linux", - target_env = "uclibc", + target_env = "gnu", target_endian = "little", target_pointer_width = "64" ) )] -mod aarch64_linux_uclibc; +mod powerpc64le_linux_gnu; #[cfg( all( - target_arch = "aarch64", + target_arch = "powerpc64", target_os = "linux", - target_env = "uclibc", + target_env = "gnu", target_endian = "little", target_pointer_width = "64" ) )] -pub use aarch64_linux_uclibc::*; +pub use powerpc64le_linux_gnu::*; #[cfg( all( - target_arch = "aarch64", - target_os = "android", + target_arch = "riscv32", + target_os = "linux", + target_env = "gnu", target_endian = "little", - target_pointer_width = "64" + target_pointer_width = "32" ) )] -mod aarch64_linux_android; +mod riscv32gc_linux_gnu; #[cfg( all( - target_arch = "aarch64", - target_os = "android", + target_arch = "riscv32", + target_os = "linux", + target_env = "gnu", target_endian = "little", - target_pointer_width = "64" + target_pointer_width = "32" ) )] -pub use aarch64_linux_android::*; +pub use riscv32gc_linux_gnu::*; #[cfg( all( - target_arch = "powerpc64", + target_arch = "riscv64", target_os = "linux", target_env = "gnu", - target_endian = "big", + target_endian = "little", target_pointer_width = "64" ) )] -mod powerpc64_linux_gnu; +mod riscv64gc_linux_gnu; #[cfg( all( - target_arch = "powerpc64", + target_arch = "riscv64", target_os = "linux", target_env = "gnu", - target_endian = "big", + target_endian = "little", target_pointer_width = "64" ) )] -pub use powerpc64_linux_gnu::*; +pub use riscv64gc_linux_gnu::*; #[cfg( all( - target_arch = "powerpc64", + target_arch = "aarch64", target_os = "linux", - target_env = "gnu", + target_env = "musl", target_endian = "little", target_pointer_width = "64" ) )] -mod powerpc64le_linux_gnu; +mod aarch64_linux_musl; #[cfg( all( - target_arch = "powerpc64", + target_arch = "aarch64", target_os = "linux", - target_env = "gnu", + target_env = "musl", target_endian = "little", target_pointer_width = "64" ) )] -pub use powerpc64le_linux_gnu::*; +pub use aarch64_linux_musl::*; #[cfg( all( target_arch = "powerpc64", @@ -234,82 +237,80 @@ pub use powerpc64le_linux_musl::*; all( target_arch = "riscv32", target_os = "linux", - target_env = "gnu", + target_env = "musl", target_endian = "little", target_pointer_width = "32" ) )] -mod riscv32gc_linux_gnu; +mod riscv32gc_linux_musl; #[cfg( all( target_arch = "riscv32", target_os = "linux", - target_env = "gnu", + target_env = "musl", target_endian = "little", target_pointer_width = "32" ) )] -pub use riscv32gc_linux_gnu::*; +pub use riscv32gc_linux_musl::*; #[cfg( all( - target_arch = "riscv32", + target_arch = "riscv64", target_os = "linux", target_env = "musl", target_endian = "little", - target_pointer_width = "32" + target_pointer_width = "64" ) )] -mod riscv32gc_linux_musl; +mod riscv64gc_linux_musl; #[cfg( all( - target_arch = "riscv32", + target_arch = "riscv64", target_os = "linux", target_env = "musl", target_endian = "little", - target_pointer_width = "32" + target_pointer_width = "64" ) )] -pub use riscv32gc_linux_musl::*; +pub use riscv64gc_linux_musl::*; #[cfg( all( - target_arch = "riscv64", + target_arch = "aarch64", target_os = "linux", - target_env = "gnu", + target_env = "uclibc", target_endian = "little", target_pointer_width = "64" ) )] -mod riscv64gc_linux_gnu; +mod aarch64_linux_uclibc; #[cfg( all( - target_arch = "riscv64", + target_arch = "aarch64", target_os = "linux", - target_env = "gnu", + target_env = "uclibc", target_endian = "little", target_pointer_width = "64" ) )] -pub use riscv64gc_linux_gnu::*; +pub use aarch64_linux_uclibc::*; #[cfg( all( - target_arch = "riscv64", - target_os = "linux", - target_env = "musl", + target_arch = "aarch64", + target_os = "android", target_endian = "little", target_pointer_width = "64" ) )] -mod riscv64gc_linux_musl; +mod aarch64_linux_android; #[cfg( all( - target_arch = "riscv64", - target_os = "linux", - target_env = "musl", + target_arch = "aarch64", + target_os = "android", target_endian = "little", target_pointer_width = "64" ) )] -pub use riscv64gc_linux_musl::*; +pub use aarch64_linux_android::*; #[cfg( all( target_arch = "riscv64", @@ -616,6 +617,24 @@ mod aarch64_illumos; ) )] pub use aarch64_illumos::*; +#[cfg( + all( + target_arch = "powerpc64", + target_os = "aix", + target_endian = "big", + target_pointer_width = "64" + ) +)] +mod powerpc64_ibm_aix; +#[cfg( + all( + target_arch = "powerpc64", + target_os = "aix", + target_endian = "big", + target_pointer_width = "64" + ) +)] +pub use powerpc64_ibm_aix::*; #[cfg( all( target_arch = "aarch64", diff --git a/tests/helper/src/gen/sys/powerpc64_freebsd/dlfcn.rs b/tests/helper/src/gen/sys/powerpc64_freebsd/dlfcn.rs new file mode 100644 index 00000000..e7bac10c --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64_freebsd/dlfcn.rs @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = -2i8 + as *mut ::std::os::raw::c_void; +extern "C" { + pub fn dlsym( + arg1: *mut ::core::ffi::c_void, + arg2: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/powerpc64_freebsd/machine_cpu.rs b/tests/helper/src/gen/sys/powerpc64_freebsd/machine_cpu.rs index c85d1644..b42f7194 100644 --- a/tests/helper/src/gen/sys/powerpc64_freebsd/machine_cpu.rs +++ b/tests/helper/src/gen/sys/powerpc64_freebsd/machine_cpu.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const PPC_FEATURE_32: u32 = 2147483648; pub const PPC_FEATURE_64: u32 = 1073741824; pub const PPC_FEATURE_601_INSTR: u32 = 536870912; diff --git a/tests/helper/src/gen/sys/powerpc64_freebsd/machine_elf.rs b/tests/helper/src/gen/sys/powerpc64_freebsd/machine_elf.rs index bfc2fa1f..4109b603 100644 --- a/tests/helper/src/gen/sys/powerpc64_freebsd/machine_elf.rs +++ b/tests/helper/src/gen/sys/powerpc64_freebsd/machine_elf.rs @@ -3,6 +3,19 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf32_Auxinfo { + pub a_type: ::std::os::raw::c_int, + pub a_un: Elf32_Auxinfo__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf32_Auxinfo__bindgen_ty_1 { + pub a_val: ::std::os::raw::c_int, +} #[repr(C)] #[derive(Copy, Clone)] pub struct Elf64_Auxinfo { @@ -16,3 +29,4 @@ pub union Elf64_Auxinfo__bindgen_ty_1 { pub a_ptr: *mut ::core::ffi::c_void, pub a_fcn: ::core::option::Option, } +pub type Elf_Auxinfo = Elf64_Auxinfo; diff --git a/tests/helper/src/gen/sys/powerpc64_freebsd/mod.rs b/tests/helper/src/gen/sys/powerpc64_freebsd/mod.rs index 95c236eb..7003d789 100644 --- a/tests/helper/src/gen/sys/powerpc64_freebsd/mod.rs +++ b/tests/helper/src/gen/sys/powerpc64_freebsd/mod.rs @@ -4,6 +4,9 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod sys_auxv; pub use sys_auxv::elf_aux_info; mod sys_syscall; @@ -443,13 +446,47 @@ pub use sys_sysctl::KERN_PROC; pub use sys_sysctl::KERN_PROC_AUXV; pub use sys_sysctl::sysctl; mod sys_elf_common; +pub use sys_elf_common::AT_NULL; +pub use sys_elf_common::AT_IGNORE; +pub use sys_elf_common::AT_EXECFD; +pub use sys_elf_common::AT_PHDR; +pub use sys_elf_common::AT_PHENT; +pub use sys_elf_common::AT_PHNUM; +pub use sys_elf_common::AT_PAGESZ; +pub use sys_elf_common::AT_BASE; +pub use sys_elf_common::AT_FLAGS; +pub use sys_elf_common::AT_ENTRY; +pub use sys_elf_common::AT_NOTELF; +pub use sys_elf_common::AT_UID; +pub use sys_elf_common::AT_EUID; +pub use sys_elf_common::AT_GID; +pub use sys_elf_common::AT_EGID; +pub use sys_elf_common::AT_EXECPATH; +pub use sys_elf_common::AT_CANARY; +pub use sys_elf_common::AT_CANARYLEN; +pub use sys_elf_common::AT_OSRELDATE; +pub use sys_elf_common::AT_NCPUS; +pub use sys_elf_common::AT_PAGESIZES; +pub use sys_elf_common::AT_PAGESIZESLEN; +pub use sys_elf_common::AT_TIMEKEEP; +pub use sys_elf_common::AT_STACKPROT; +pub use sys_elf_common::AT_EHDRFLAGS; pub use sys_elf_common::AT_HWCAP; pub use sys_elf_common::AT_HWCAP2; +pub use sys_elf_common::AT_BSDFLAGS; +pub use sys_elf_common::AT_ARGC; +pub use sys_elf_common::AT_ARGV; +pub use sys_elf_common::AT_ENVC; +pub use sys_elf_common::AT_ENVV; +pub use sys_elf_common::AT_PS_STRINGS; +pub use sys_elf_common::AT_FXRNG; +pub use sys_elf_common::AT_KPRELOAD; +pub use sys_elf_common::AT_USRSTACKBASE; +pub use sys_elf_common::AT_USRSTACKLIM; +pub use sys_elf_common::AT_CHERI_STATS; pub use sys_elf_common::AT_COUNT; mod unistd; pub use unistd::getpid; -mod machine_elf; -pub use machine_elf::Elf64_Auxinfo; mod machine_cpu; pub use machine_cpu::PPC_FEATURE_32; pub use machine_cpu::PPC_FEATURE_64; @@ -491,4 +528,8 @@ pub use machine_cpu::PPC_FEATURE2_SCV; pub use machine_cpu::PPC_FEATURE2_HTM_NOSUSPEND; pub use machine_cpu::PPC_FEATURE_BITMASK; pub use machine_cpu::PPC_FEATURE2_BITMASK; +mod machine_elf; +pub use machine_elf::Elf32_Auxinfo; +pub use machine_elf::Elf64_Auxinfo; +pub use machine_elf::Elf_Auxinfo; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/powerpc64_freebsd/sys_auxv.rs b/tests/helper/src/gen/sys/powerpc64_freebsd/sys_auxv.rs index 78daf7e3..7b6c1be2 100644 --- a/tests/helper/src/gen/sys/powerpc64_freebsd/sys_auxv.rs +++ b/tests/helper/src/gen/sys/powerpc64_freebsd/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn elf_aux_info( aux: ::std::os::raw::c_int, diff --git a/tests/helper/src/gen/sys/powerpc64_freebsd/sys_elf_common.rs b/tests/helper/src/gen/sys/powerpc64_freebsd/sys_elf_common.rs index f1075df3..85bae3b6 100644 --- a/tests/helper/src/gen/sys/powerpc64_freebsd/sys_elf_common.rs +++ b/tests/helper/src/gen/sys/powerpc64_freebsd/sys_elf_common.rs @@ -3,6 +3,44 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_EXECPATH: u32 = 15; +pub const AT_CANARY: u32 = 16; +pub const AT_CANARYLEN: u32 = 17; +pub const AT_OSRELDATE: u32 = 18; +pub const AT_NCPUS: u32 = 19; +pub const AT_PAGESIZES: u32 = 20; +pub const AT_PAGESIZESLEN: u32 = 21; +pub const AT_TIMEKEEP: u32 = 22; +pub const AT_STACKPROT: u32 = 23; +pub const AT_EHDRFLAGS: u32 = 24; pub const AT_HWCAP: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_BSDFLAGS: u32 = 27; +pub const AT_ARGC: u32 = 28; +pub const AT_ARGV: u32 = 29; +pub const AT_ENVC: u32 = 30; +pub const AT_ENVV: u32 = 31; +pub const AT_PS_STRINGS: u32 = 32; +pub const AT_FXRNG: u32 = 33; +pub const AT_KPRELOAD: u32 = 34; +pub const AT_USRSTACKBASE: u32 = 35; +pub const AT_USRSTACKLIM: u32 = 36; +pub const AT_CHERI_STATS: u32 = 37; pub const AT_COUNT: u32 = 38; diff --git a/tests/helper/src/gen/sys/powerpc64_freebsd/sys_syscall.rs b/tests/helper/src/gen/sys/powerpc64_freebsd/sys_syscall.rs index ca887596..9437b0b4 100644 --- a/tests/helper/src/gen/sys/powerpc64_freebsd/sys_syscall.rs +++ b/tests/helper/src/gen/sys/powerpc64_freebsd/sys_syscall.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const SYS_syscall: u32 = 0; pub const SYS_exit: u32 = 1; pub const SYS_fork: u32 = 2; diff --git a/tests/helper/src/gen/sys/powerpc64_freebsd/sys_sysctl.rs b/tests/helper/src/gen/sys/powerpc64_freebsd/sys_sysctl.rs index 49a2356c..4eb45c3a 100644 --- a/tests/helper/src/gen/sys/powerpc64_freebsd/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/powerpc64_freebsd/sys_sysctl.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const CTL_KERN: u32 = 1; pub const KERN_PROC: u32 = 14; pub const KERN_PROC_AUXV: u32 = 36; diff --git a/tests/helper/src/gen/sys/powerpc64_freebsd/unistd.rs b/tests/helper/src/gen/sys/powerpc64_freebsd/unistd.rs index a65ffc02..43120343 100644 --- a/tests/helper/src/gen/sys/powerpc64_freebsd/unistd.rs +++ b/tests/helper/src/gen/sys/powerpc64_freebsd/unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type __int32_t = ::std::os::raw::c_int; pub type __pid_t = __int32_t; pub type pid_t = __pid_t; diff --git a/tests/helper/src/gen/sys/powerpc64_ibm_aix/mod.rs b/tests/helper/src/gen/sys/powerpc64_ibm_aix/mod.rs new file mode 100644 index 00000000..88b25358 --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64_ibm_aix/mod.rs @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] +pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/powerpc64_linux_gnu/dlfcn.rs b/tests/helper/src/gen/sys/powerpc64_linux_gnu/dlfcn.rs new file mode 100644 index 00000000..0c516f36 --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64_linux_gnu/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + __handle: *mut ::core::ffi::c_void, + __name: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/powerpc64_linux_gnu/elf.rs b/tests/helper/src/gen/sys/powerpc64_linux_gnu/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_gnu/elf.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_gnu/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_asm_cputable.rs b/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_asm_cputable.rs index ab8b307b..905b1aaa 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_asm_cputable.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_asm_cputable.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const PPC_FEATURE_32: u32 = 2147483648; pub const PPC_FEATURE_64: u32 = 1073741824; pub const PPC_FEATURE_601_INSTR: u32 = 536870912; diff --git a/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_asm_unistd.rs index c7c14019..1fcd97eb 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_restart_syscall: u32 = 0; pub const __NR_exit: u32 = 1; pub const __NR_fork: u32 = 2; diff --git a/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_linux_auxvec.rs index 2b4a98be..16bf174c 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_linux_auxvec.rs @@ -3,7 +3,47 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_DCACHEBSIZE: u32 = 19; +pub const AT_ICACHEBSIZE: u32 = 20; +pub const AT_UCACHEBSIZE: u32 = 21; +pub const AT_IGNOREPPC: u32 = 22; +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_L1I_CACHESIZE: u32 = 40; +pub const AT_L1I_CACHEGEOMETRY: u32 = 41; +pub const AT_L1D_CACHESIZE: u32 = 42; +pub const AT_L1D_CACHEGEOMETRY: u32 = 43; +pub const AT_L2_CACHESIZE: u32 = 44; +pub const AT_L2_CACHEGEOMETRY: u32 = 45; +pub const AT_L3_CACHESIZE: u32 = 46; +pub const AT_L3_CACHEGEOMETRY: u32 = 47; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 15; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_gnu/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/powerpc64_linux_gnu/mod.rs b/tests/helper/src/gen/sys/powerpc64_linux_gnu/mod.rs index 3afae438..288fd00f 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_gnu/mod.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_gnu/mod.rs @@ -4,13 +4,50 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_cputable; +pub use linux_headers_asm_cputable::PPC_FEATURE_32; +pub use linux_headers_asm_cputable::PPC_FEATURE_64; +pub use linux_headers_asm_cputable::PPC_FEATURE_601_INSTR; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_ALTIVEC; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_FPU; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_MMU; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_4xxMAC; +pub use linux_headers_asm_cputable::PPC_FEATURE_UNIFIED_CACHE; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_SPE; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_SINGLE; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_DOUBLE; +pub use linux_headers_asm_cputable::PPC_FEATURE_NO_TB; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER4; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5_PLUS; +pub use linux_headers_asm_cputable::PPC_FEATURE_CELL; +pub use linux_headers_asm_cputable::PPC_FEATURE_BOOKE; +pub use linux_headers_asm_cputable::PPC_FEATURE_SMT; +pub use linux_headers_asm_cputable::PPC_FEATURE_ICACHE_SNOOP; +pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_05; +pub use linux_headers_asm_cputable::PPC_FEATURE_PA6T; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_DFP; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER6_EXT; +pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_06; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_VSX; +pub use linux_headers_asm_cputable::PPC_FEATURE_PSERIES_PERFMON_COMPAT; +pub use linux_headers_asm_cputable::PPC_FEATURE_TRUE_LE; +pub use linux_headers_asm_cputable::PPC_FEATURE_PPC_LE; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_2_07; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM; +pub use linux_headers_asm_cputable::PPC_FEATURE2_DSCR; +pub use linux_headers_asm_cputable::PPC_FEATURE2_EBB; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ISEL; +pub use linux_headers_asm_cputable::PPC_FEATURE2_TAR; +pub use linux_headers_asm_cputable::PPC_FEATURE2_VEC_CRYPTO; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NOSC; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_00; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HAS_IEEE128; +pub use linux_headers_asm_cputable::PPC_FEATURE2_DARN; +pub use linux_headers_asm_cputable::PPC_FEATURE2_SCV; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NO_SUSPEND; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_1; +pub use linux_headers_asm_cputable::PPC_FEATURE2_MMA; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_restart_syscall; pub use linux_headers_asm_unistd::__NR_exit; @@ -427,53 +464,242 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_cputable; -pub use linux_headers_asm_cputable::PPC_FEATURE_32; -pub use linux_headers_asm_cputable::PPC_FEATURE_64; -pub use linux_headers_asm_cputable::PPC_FEATURE_601_INSTR; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_ALTIVEC; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_FPU; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_MMU; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_4xxMAC; -pub use linux_headers_asm_cputable::PPC_FEATURE_UNIFIED_CACHE; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_SPE; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_SINGLE; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_DOUBLE; -pub use linux_headers_asm_cputable::PPC_FEATURE_NO_TB; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER4; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5_PLUS; -pub use linux_headers_asm_cputable::PPC_FEATURE_CELL; -pub use linux_headers_asm_cputable::PPC_FEATURE_BOOKE; -pub use linux_headers_asm_cputable::PPC_FEATURE_SMT; -pub use linux_headers_asm_cputable::PPC_FEATURE_ICACHE_SNOOP; -pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_05; -pub use linux_headers_asm_cputable::PPC_FEATURE_PA6T; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_DFP; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER6_EXT; -pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_06; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_VSX; -pub use linux_headers_asm_cputable::PPC_FEATURE_PSERIES_PERFMON_COMPAT; -pub use linux_headers_asm_cputable::PPC_FEATURE_TRUE_LE; -pub use linux_headers_asm_cputable::PPC_FEATURE_PPC_LE; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_2_07; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM; -pub use linux_headers_asm_cputable::PPC_FEATURE2_DSCR; -pub use linux_headers_asm_cputable::PPC_FEATURE2_EBB; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ISEL; -pub use linux_headers_asm_cputable::PPC_FEATURE2_TAR; -pub use linux_headers_asm_cputable::PPC_FEATURE2_VEC_CRYPTO; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NOSC; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_00; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HAS_IEEE128; -pub use linux_headers_asm_cputable::PPC_FEATURE2_DARN; -pub use linux_headers_asm_cputable::PPC_FEATURE2_SCV; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NO_SUSPEND; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_1; -pub use linux_headers_asm_cputable::PPC_FEATURE2_MMA; -mod sys_auxv; -pub use sys_auxv::getauxval; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_DCACHEBSIZE; +pub use linux_headers_linux_auxvec::AT_ICACHEBSIZE; +pub use linux_headers_linux_auxvec::AT_UCACHEBSIZE; +pub use linux_headers_linux_auxvec::AT_IGNOREPPC; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_L1I_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1I_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L1D_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1D_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L2_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L2_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L3_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L3_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/powerpc64_linux_gnu/sys_auxv.rs b/tests/helper/src/gen/sys/powerpc64_linux_gnu/sys_auxv.rs index aeae8561..1fe1c678 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_gnu/sys_auxv.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_gnu/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(__type: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/powerpc64_linux_gnu/sys_prctl.rs b/tests/helper/src/gen/sys/powerpc64_linux_gnu/sys_prctl.rs new file mode 100644 index 00000000..2daf3d5a --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64_linux_gnu/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(__option: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/powerpc64_linux_gnu/unistd.rs b/tests/helper/src/gen/sys/powerpc64_linux_gnu/unistd.rs new file mode 100644 index 00000000..eab78d00 --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64_linux_gnu/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(__sysno: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/powerpc64_linux_musl/dlfcn.rs b/tests/helper/src/gen/sys/powerpc64_linux_musl/dlfcn.rs new file mode 100644 index 00000000..87cb3e98 --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64_linux_musl/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + arg1: *mut ::core::ffi::c_void, + arg2: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/powerpc64_linux_musl/elf.rs b/tests/helper/src/gen/sys/powerpc64_linux_musl/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_musl/elf.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_musl/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_asm_cputable.rs b/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_asm_cputable.rs index ab8b307b..905b1aaa 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_asm_cputable.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_asm_cputable.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const PPC_FEATURE_32: u32 = 2147483648; pub const PPC_FEATURE_64: u32 = 1073741824; pub const PPC_FEATURE_601_INSTR: u32 = 536870912; diff --git a/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_asm_unistd.rs index c7c14019..1fcd97eb 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_restart_syscall: u32 = 0; pub const __NR_exit: u32 = 1; pub const __NR_fork: u32 = 2; diff --git a/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_linux_auxvec.rs index 2b4a98be..16bf174c 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_linux_auxvec.rs @@ -3,7 +3,47 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_DCACHEBSIZE: u32 = 19; +pub const AT_ICACHEBSIZE: u32 = 20; +pub const AT_UCACHEBSIZE: u32 = 21; +pub const AT_IGNOREPPC: u32 = 22; +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_L1I_CACHESIZE: u32 = 40; +pub const AT_L1I_CACHEGEOMETRY: u32 = 41; +pub const AT_L1D_CACHESIZE: u32 = 42; +pub const AT_L1D_CACHEGEOMETRY: u32 = 43; +pub const AT_L2_CACHESIZE: u32 = 44; +pub const AT_L2_CACHEGEOMETRY: u32 = 45; +pub const AT_L3_CACHESIZE: u32 = 46; +pub const AT_L3_CACHEGEOMETRY: u32 = 47; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 15; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_musl/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/powerpc64_linux_musl/mod.rs b/tests/helper/src/gen/sys/powerpc64_linux_musl/mod.rs index 3afae438..288fd00f 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_musl/mod.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_musl/mod.rs @@ -4,13 +4,50 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_cputable; +pub use linux_headers_asm_cputable::PPC_FEATURE_32; +pub use linux_headers_asm_cputable::PPC_FEATURE_64; +pub use linux_headers_asm_cputable::PPC_FEATURE_601_INSTR; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_ALTIVEC; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_FPU; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_MMU; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_4xxMAC; +pub use linux_headers_asm_cputable::PPC_FEATURE_UNIFIED_CACHE; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_SPE; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_SINGLE; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_DOUBLE; +pub use linux_headers_asm_cputable::PPC_FEATURE_NO_TB; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER4; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5_PLUS; +pub use linux_headers_asm_cputable::PPC_FEATURE_CELL; +pub use linux_headers_asm_cputable::PPC_FEATURE_BOOKE; +pub use linux_headers_asm_cputable::PPC_FEATURE_SMT; +pub use linux_headers_asm_cputable::PPC_FEATURE_ICACHE_SNOOP; +pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_05; +pub use linux_headers_asm_cputable::PPC_FEATURE_PA6T; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_DFP; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER6_EXT; +pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_06; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_VSX; +pub use linux_headers_asm_cputable::PPC_FEATURE_PSERIES_PERFMON_COMPAT; +pub use linux_headers_asm_cputable::PPC_FEATURE_TRUE_LE; +pub use linux_headers_asm_cputable::PPC_FEATURE_PPC_LE; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_2_07; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM; +pub use linux_headers_asm_cputable::PPC_FEATURE2_DSCR; +pub use linux_headers_asm_cputable::PPC_FEATURE2_EBB; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ISEL; +pub use linux_headers_asm_cputable::PPC_FEATURE2_TAR; +pub use linux_headers_asm_cputable::PPC_FEATURE2_VEC_CRYPTO; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NOSC; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_00; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HAS_IEEE128; +pub use linux_headers_asm_cputable::PPC_FEATURE2_DARN; +pub use linux_headers_asm_cputable::PPC_FEATURE2_SCV; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NO_SUSPEND; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_1; +pub use linux_headers_asm_cputable::PPC_FEATURE2_MMA; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_restart_syscall; pub use linux_headers_asm_unistd::__NR_exit; @@ -427,53 +464,242 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_cputable; -pub use linux_headers_asm_cputable::PPC_FEATURE_32; -pub use linux_headers_asm_cputable::PPC_FEATURE_64; -pub use linux_headers_asm_cputable::PPC_FEATURE_601_INSTR; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_ALTIVEC; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_FPU; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_MMU; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_4xxMAC; -pub use linux_headers_asm_cputable::PPC_FEATURE_UNIFIED_CACHE; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_SPE; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_SINGLE; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_DOUBLE; -pub use linux_headers_asm_cputable::PPC_FEATURE_NO_TB; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER4; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5_PLUS; -pub use linux_headers_asm_cputable::PPC_FEATURE_CELL; -pub use linux_headers_asm_cputable::PPC_FEATURE_BOOKE; -pub use linux_headers_asm_cputable::PPC_FEATURE_SMT; -pub use linux_headers_asm_cputable::PPC_FEATURE_ICACHE_SNOOP; -pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_05; -pub use linux_headers_asm_cputable::PPC_FEATURE_PA6T; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_DFP; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER6_EXT; -pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_06; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_VSX; -pub use linux_headers_asm_cputable::PPC_FEATURE_PSERIES_PERFMON_COMPAT; -pub use linux_headers_asm_cputable::PPC_FEATURE_TRUE_LE; -pub use linux_headers_asm_cputable::PPC_FEATURE_PPC_LE; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_2_07; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM; -pub use linux_headers_asm_cputable::PPC_FEATURE2_DSCR; -pub use linux_headers_asm_cputable::PPC_FEATURE2_EBB; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ISEL; -pub use linux_headers_asm_cputable::PPC_FEATURE2_TAR; -pub use linux_headers_asm_cputable::PPC_FEATURE2_VEC_CRYPTO; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NOSC; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_00; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HAS_IEEE128; -pub use linux_headers_asm_cputable::PPC_FEATURE2_DARN; -pub use linux_headers_asm_cputable::PPC_FEATURE2_SCV; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NO_SUSPEND; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_1; -pub use linux_headers_asm_cputable::PPC_FEATURE2_MMA; -mod sys_auxv; -pub use sys_auxv::getauxval; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_DCACHEBSIZE; +pub use linux_headers_linux_auxvec::AT_ICACHEBSIZE; +pub use linux_headers_linux_auxvec::AT_UCACHEBSIZE; +pub use linux_headers_linux_auxvec::AT_IGNOREPPC; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_L1I_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1I_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L1D_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1D_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L2_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L2_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L3_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L3_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/powerpc64_linux_musl/sys_auxv.rs b/tests/helper/src/gen/sys/powerpc64_linux_musl/sys_auxv.rs index b6d1eb82..fc602aeb 100644 --- a/tests/helper/src/gen/sys/powerpc64_linux_musl/sys_auxv.rs +++ b/tests/helper/src/gen/sys/powerpc64_linux_musl/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(arg1: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/powerpc64_linux_musl/sys_prctl.rs b/tests/helper/src/gen/sys/powerpc64_linux_musl/sys_prctl.rs new file mode 100644 index 00000000..89f0295b --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64_linux_musl/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/powerpc64_linux_musl/unistd.rs b/tests/helper/src/gen/sys/powerpc64_linux_musl/unistd.rs new file mode 100644 index 00000000..d16be956 --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64_linux_musl/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(arg1: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/powerpc64_openbsd/dlfcn.rs b/tests/helper/src/gen/sys/powerpc64_openbsd/dlfcn.rs new file mode 100644 index 00000000..e7bac10c --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64_openbsd/dlfcn.rs @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = -2i8 + as *mut ::std::os::raw::c_void; +extern "C" { + pub fn dlsym( + arg1: *mut ::core::ffi::c_void, + arg2: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/powerpc64_openbsd/machine_cpu.rs b/tests/helper/src/gen/sys/powerpc64_openbsd/machine_cpu.rs new file mode 100644 index 00000000..e27edf06 --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64_openbsd/machine_cpu.rs @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const CPU_ALTIVEC: u32 = 1; +pub const CPU_MAXID: u32 = 2; diff --git a/tests/helper/src/gen/sys/powerpc64_openbsd/machine_elf.rs b/tests/helper/src/gen/sys/powerpc64_openbsd/machine_elf.rs index f1dfebdc..329bea3a 100644 --- a/tests/helper/src/gen/sys/powerpc64_openbsd/machine_elf.rs +++ b/tests/helper/src/gen/sys/powerpc64_openbsd/machine_elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const PPC_FEATURE_32: u32 = 2147483648; pub const PPC_FEATURE_64: u32 = 1073741824; pub const PPC_FEATURE_601_INSTR: u32 = 536870912; diff --git a/tests/helper/src/gen/sys/powerpc64_openbsd/mod.rs b/tests/helper/src/gen/sys/powerpc64_openbsd/mod.rs index 92196b5c..9ff749d9 100644 --- a/tests/helper/src/gen/sys/powerpc64_openbsd/mod.rs +++ b/tests/helper/src/gen/sys/powerpc64_openbsd/mod.rs @@ -4,13 +4,23 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod sys_sysctl; -pub use sys_sysctl::CTL_MACHDEP; -pub use sys_sysctl::sysctl; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod sys_auxv; +pub use sys_auxv::AT_NULL; +pub use sys_auxv::AT_IGNORE; +pub use sys_auxv::AT_PAGESZ; pub use sys_auxv::AT_HWCAP; pub use sys_auxv::AT_HWCAP2; +pub use sys_auxv::AT_COUNT; pub use sys_auxv::elf_aux_info; +mod sys_sysctl; +pub use sys_sysctl::CTL_MACHDEP; +pub use sys_sysctl::sysctl; +mod machine_cpu; +pub use machine_cpu::CPU_ALTIVEC; +pub use machine_cpu::CPU_MAXID; mod machine_elf; pub use machine_elf::PPC_FEATURE_32; pub use machine_elf::PPC_FEATURE_64; diff --git a/tests/helper/src/gen/sys/powerpc64_openbsd/sys_auxv.rs b/tests/helper/src/gen/sys/powerpc64_openbsd/sys_auxv.rs index edb66f8b..b2dc7e1e 100644 --- a/tests/helper/src/gen/sys/powerpc64_openbsd/sys_auxv.rs +++ b/tests/helper/src/gen/sys/powerpc64_openbsd/sys_auxv.rs @@ -3,8 +3,14 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_PAGESZ: u32 = 6; pub const AT_HWCAP: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_COUNT: u32 = 27; extern "C" { pub fn elf_aux_info( aux: ::std::os::raw::c_int, diff --git a/tests/helper/src/gen/sys/powerpc64_openbsd/sys_sysctl.rs b/tests/helper/src/gen/sys/powerpc64_openbsd/sys_sysctl.rs index 1cbc15c8..23078453 100644 --- a/tests/helper/src/gen/sys/powerpc64_openbsd/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/powerpc64_openbsd/sys_sysctl.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type u_int = ::std::os::raw::c_uint; pub const CTL_MACHDEP: u32 = 7; extern "C" { diff --git a/tests/helper/src/gen/sys/powerpc64le_freebsd/dlfcn.rs b/tests/helper/src/gen/sys/powerpc64le_freebsd/dlfcn.rs new file mode 100644 index 00000000..e7bac10c --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64le_freebsd/dlfcn.rs @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = -2i8 + as *mut ::std::os::raw::c_void; +extern "C" { + pub fn dlsym( + arg1: *mut ::core::ffi::c_void, + arg2: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/powerpc64le_freebsd/machine_cpu.rs b/tests/helper/src/gen/sys/powerpc64le_freebsd/machine_cpu.rs index c85d1644..b42f7194 100644 --- a/tests/helper/src/gen/sys/powerpc64le_freebsd/machine_cpu.rs +++ b/tests/helper/src/gen/sys/powerpc64le_freebsd/machine_cpu.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const PPC_FEATURE_32: u32 = 2147483648; pub const PPC_FEATURE_64: u32 = 1073741824; pub const PPC_FEATURE_601_INSTR: u32 = 536870912; diff --git a/tests/helper/src/gen/sys/powerpc64le_freebsd/machine_elf.rs b/tests/helper/src/gen/sys/powerpc64le_freebsd/machine_elf.rs index bfc2fa1f..4109b603 100644 --- a/tests/helper/src/gen/sys/powerpc64le_freebsd/machine_elf.rs +++ b/tests/helper/src/gen/sys/powerpc64le_freebsd/machine_elf.rs @@ -3,6 +3,19 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Elf32_Auxinfo { + pub a_type: ::std::os::raw::c_int, + pub a_un: Elf32_Auxinfo__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union Elf32_Auxinfo__bindgen_ty_1 { + pub a_val: ::std::os::raw::c_int, +} #[repr(C)] #[derive(Copy, Clone)] pub struct Elf64_Auxinfo { @@ -16,3 +29,4 @@ pub union Elf64_Auxinfo__bindgen_ty_1 { pub a_ptr: *mut ::core::ffi::c_void, pub a_fcn: ::core::option::Option, } +pub type Elf_Auxinfo = Elf64_Auxinfo; diff --git a/tests/helper/src/gen/sys/powerpc64le_freebsd/mod.rs b/tests/helper/src/gen/sys/powerpc64le_freebsd/mod.rs index 95c236eb..7003d789 100644 --- a/tests/helper/src/gen/sys/powerpc64le_freebsd/mod.rs +++ b/tests/helper/src/gen/sys/powerpc64le_freebsd/mod.rs @@ -4,6 +4,9 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod sys_auxv; pub use sys_auxv::elf_aux_info; mod sys_syscall; @@ -443,13 +446,47 @@ pub use sys_sysctl::KERN_PROC; pub use sys_sysctl::KERN_PROC_AUXV; pub use sys_sysctl::sysctl; mod sys_elf_common; +pub use sys_elf_common::AT_NULL; +pub use sys_elf_common::AT_IGNORE; +pub use sys_elf_common::AT_EXECFD; +pub use sys_elf_common::AT_PHDR; +pub use sys_elf_common::AT_PHENT; +pub use sys_elf_common::AT_PHNUM; +pub use sys_elf_common::AT_PAGESZ; +pub use sys_elf_common::AT_BASE; +pub use sys_elf_common::AT_FLAGS; +pub use sys_elf_common::AT_ENTRY; +pub use sys_elf_common::AT_NOTELF; +pub use sys_elf_common::AT_UID; +pub use sys_elf_common::AT_EUID; +pub use sys_elf_common::AT_GID; +pub use sys_elf_common::AT_EGID; +pub use sys_elf_common::AT_EXECPATH; +pub use sys_elf_common::AT_CANARY; +pub use sys_elf_common::AT_CANARYLEN; +pub use sys_elf_common::AT_OSRELDATE; +pub use sys_elf_common::AT_NCPUS; +pub use sys_elf_common::AT_PAGESIZES; +pub use sys_elf_common::AT_PAGESIZESLEN; +pub use sys_elf_common::AT_TIMEKEEP; +pub use sys_elf_common::AT_STACKPROT; +pub use sys_elf_common::AT_EHDRFLAGS; pub use sys_elf_common::AT_HWCAP; pub use sys_elf_common::AT_HWCAP2; +pub use sys_elf_common::AT_BSDFLAGS; +pub use sys_elf_common::AT_ARGC; +pub use sys_elf_common::AT_ARGV; +pub use sys_elf_common::AT_ENVC; +pub use sys_elf_common::AT_ENVV; +pub use sys_elf_common::AT_PS_STRINGS; +pub use sys_elf_common::AT_FXRNG; +pub use sys_elf_common::AT_KPRELOAD; +pub use sys_elf_common::AT_USRSTACKBASE; +pub use sys_elf_common::AT_USRSTACKLIM; +pub use sys_elf_common::AT_CHERI_STATS; pub use sys_elf_common::AT_COUNT; mod unistd; pub use unistd::getpid; -mod machine_elf; -pub use machine_elf::Elf64_Auxinfo; mod machine_cpu; pub use machine_cpu::PPC_FEATURE_32; pub use machine_cpu::PPC_FEATURE_64; @@ -491,4 +528,8 @@ pub use machine_cpu::PPC_FEATURE2_SCV; pub use machine_cpu::PPC_FEATURE2_HTM_NOSUSPEND; pub use machine_cpu::PPC_FEATURE_BITMASK; pub use machine_cpu::PPC_FEATURE2_BITMASK; +mod machine_elf; +pub use machine_elf::Elf32_Auxinfo; +pub use machine_elf::Elf64_Auxinfo; +pub use machine_elf::Elf_Auxinfo; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_auxv.rs b/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_auxv.rs index 78daf7e3..7b6c1be2 100644 --- a/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_auxv.rs +++ b/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn elf_aux_info( aux: ::std::os::raw::c_int, diff --git a/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_elf_common.rs b/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_elf_common.rs index f1075df3..85bae3b6 100644 --- a/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_elf_common.rs +++ b/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_elf_common.rs @@ -3,6 +3,44 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_EXECPATH: u32 = 15; +pub const AT_CANARY: u32 = 16; +pub const AT_CANARYLEN: u32 = 17; +pub const AT_OSRELDATE: u32 = 18; +pub const AT_NCPUS: u32 = 19; +pub const AT_PAGESIZES: u32 = 20; +pub const AT_PAGESIZESLEN: u32 = 21; +pub const AT_TIMEKEEP: u32 = 22; +pub const AT_STACKPROT: u32 = 23; +pub const AT_EHDRFLAGS: u32 = 24; pub const AT_HWCAP: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_BSDFLAGS: u32 = 27; +pub const AT_ARGC: u32 = 28; +pub const AT_ARGV: u32 = 29; +pub const AT_ENVC: u32 = 30; +pub const AT_ENVV: u32 = 31; +pub const AT_PS_STRINGS: u32 = 32; +pub const AT_FXRNG: u32 = 33; +pub const AT_KPRELOAD: u32 = 34; +pub const AT_USRSTACKBASE: u32 = 35; +pub const AT_USRSTACKLIM: u32 = 36; +pub const AT_CHERI_STATS: u32 = 37; pub const AT_COUNT: u32 = 38; diff --git a/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_syscall.rs b/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_syscall.rs index ca887596..9437b0b4 100644 --- a/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_syscall.rs +++ b/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_syscall.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const SYS_syscall: u32 = 0; pub const SYS_exit: u32 = 1; pub const SYS_fork: u32 = 2; diff --git a/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_sysctl.rs b/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_sysctl.rs index 49a2356c..4eb45c3a 100644 --- a/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/powerpc64le_freebsd/sys_sysctl.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const CTL_KERN: u32 = 1; pub const KERN_PROC: u32 = 14; pub const KERN_PROC_AUXV: u32 = 36; diff --git a/tests/helper/src/gen/sys/powerpc64le_freebsd/unistd.rs b/tests/helper/src/gen/sys/powerpc64le_freebsd/unistd.rs index a65ffc02..43120343 100644 --- a/tests/helper/src/gen/sys/powerpc64le_freebsd/unistd.rs +++ b/tests/helper/src/gen/sys/powerpc64le_freebsd/unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type __int32_t = ::std::os::raw::c_int; pub type __pid_t = __int32_t; pub type pid_t = __pid_t; diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/dlfcn.rs b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/dlfcn.rs new file mode 100644 index 00000000..0c516f36 --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + __handle: *mut ::core::ffi::c_void, + __name: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/elf.rs b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/elf.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_asm_cputable.rs b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_asm_cputable.rs index ab8b307b..905b1aaa 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_asm_cputable.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_asm_cputable.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const PPC_FEATURE_32: u32 = 2147483648; pub const PPC_FEATURE_64: u32 = 1073741824; pub const PPC_FEATURE_601_INSTR: u32 = 536870912; diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_asm_unistd.rs index c7c14019..1fcd97eb 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_restart_syscall: u32 = 0; pub const __NR_exit: u32 = 1; pub const __NR_fork: u32 = 2; diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_linux_auxvec.rs index 2b4a98be..16bf174c 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_linux_auxvec.rs @@ -3,7 +3,47 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_DCACHEBSIZE: u32 = 19; +pub const AT_ICACHEBSIZE: u32 = 20; +pub const AT_UCACHEBSIZE: u32 = 21; +pub const AT_IGNOREPPC: u32 = 22; +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_L1I_CACHESIZE: u32 = 40; +pub const AT_L1I_CACHEGEOMETRY: u32 = 41; +pub const AT_L1D_CACHESIZE: u32 = 42; +pub const AT_L1D_CACHEGEOMETRY: u32 = 43; +pub const AT_L2_CACHESIZE: u32 = 44; +pub const AT_L2_CACHEGEOMETRY: u32 = 45; +pub const AT_L3_CACHESIZE: u32 = 46; +pub const AT_L3_CACHEGEOMETRY: u32 = 47; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 15; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/mod.rs b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/mod.rs index 3afae438..288fd00f 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/mod.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/mod.rs @@ -4,13 +4,50 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_cputable; +pub use linux_headers_asm_cputable::PPC_FEATURE_32; +pub use linux_headers_asm_cputable::PPC_FEATURE_64; +pub use linux_headers_asm_cputable::PPC_FEATURE_601_INSTR; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_ALTIVEC; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_FPU; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_MMU; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_4xxMAC; +pub use linux_headers_asm_cputable::PPC_FEATURE_UNIFIED_CACHE; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_SPE; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_SINGLE; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_DOUBLE; +pub use linux_headers_asm_cputable::PPC_FEATURE_NO_TB; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER4; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5_PLUS; +pub use linux_headers_asm_cputable::PPC_FEATURE_CELL; +pub use linux_headers_asm_cputable::PPC_FEATURE_BOOKE; +pub use linux_headers_asm_cputable::PPC_FEATURE_SMT; +pub use linux_headers_asm_cputable::PPC_FEATURE_ICACHE_SNOOP; +pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_05; +pub use linux_headers_asm_cputable::PPC_FEATURE_PA6T; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_DFP; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER6_EXT; +pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_06; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_VSX; +pub use linux_headers_asm_cputable::PPC_FEATURE_PSERIES_PERFMON_COMPAT; +pub use linux_headers_asm_cputable::PPC_FEATURE_TRUE_LE; +pub use linux_headers_asm_cputable::PPC_FEATURE_PPC_LE; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_2_07; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM; +pub use linux_headers_asm_cputable::PPC_FEATURE2_DSCR; +pub use linux_headers_asm_cputable::PPC_FEATURE2_EBB; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ISEL; +pub use linux_headers_asm_cputable::PPC_FEATURE2_TAR; +pub use linux_headers_asm_cputable::PPC_FEATURE2_VEC_CRYPTO; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NOSC; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_00; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HAS_IEEE128; +pub use linux_headers_asm_cputable::PPC_FEATURE2_DARN; +pub use linux_headers_asm_cputable::PPC_FEATURE2_SCV; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NO_SUSPEND; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_1; +pub use linux_headers_asm_cputable::PPC_FEATURE2_MMA; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_restart_syscall; pub use linux_headers_asm_unistd::__NR_exit; @@ -427,53 +464,242 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_cputable; -pub use linux_headers_asm_cputable::PPC_FEATURE_32; -pub use linux_headers_asm_cputable::PPC_FEATURE_64; -pub use linux_headers_asm_cputable::PPC_FEATURE_601_INSTR; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_ALTIVEC; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_FPU; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_MMU; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_4xxMAC; -pub use linux_headers_asm_cputable::PPC_FEATURE_UNIFIED_CACHE; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_SPE; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_SINGLE; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_DOUBLE; -pub use linux_headers_asm_cputable::PPC_FEATURE_NO_TB; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER4; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5_PLUS; -pub use linux_headers_asm_cputable::PPC_FEATURE_CELL; -pub use linux_headers_asm_cputable::PPC_FEATURE_BOOKE; -pub use linux_headers_asm_cputable::PPC_FEATURE_SMT; -pub use linux_headers_asm_cputable::PPC_FEATURE_ICACHE_SNOOP; -pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_05; -pub use linux_headers_asm_cputable::PPC_FEATURE_PA6T; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_DFP; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER6_EXT; -pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_06; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_VSX; -pub use linux_headers_asm_cputable::PPC_FEATURE_PSERIES_PERFMON_COMPAT; -pub use linux_headers_asm_cputable::PPC_FEATURE_TRUE_LE; -pub use linux_headers_asm_cputable::PPC_FEATURE_PPC_LE; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_2_07; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM; -pub use linux_headers_asm_cputable::PPC_FEATURE2_DSCR; -pub use linux_headers_asm_cputable::PPC_FEATURE2_EBB; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ISEL; -pub use linux_headers_asm_cputable::PPC_FEATURE2_TAR; -pub use linux_headers_asm_cputable::PPC_FEATURE2_VEC_CRYPTO; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NOSC; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_00; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HAS_IEEE128; -pub use linux_headers_asm_cputable::PPC_FEATURE2_DARN; -pub use linux_headers_asm_cputable::PPC_FEATURE2_SCV; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NO_SUSPEND; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_1; -pub use linux_headers_asm_cputable::PPC_FEATURE2_MMA; -mod sys_auxv; -pub use sys_auxv::getauxval; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_DCACHEBSIZE; +pub use linux_headers_linux_auxvec::AT_ICACHEBSIZE; +pub use linux_headers_linux_auxvec::AT_UCACHEBSIZE; +pub use linux_headers_linux_auxvec::AT_IGNOREPPC; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_L1I_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1I_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L1D_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1D_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L2_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L2_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L3_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L3_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/sys_auxv.rs b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/sys_auxv.rs index aeae8561..1fe1c678 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/sys_auxv.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(__type: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/sys_prctl.rs b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/sys_prctl.rs new file mode 100644 index 00000000..2daf3d5a --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(__option: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_gnu/unistd.rs b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/unistd.rs new file mode 100644 index 00000000..eab78d00 --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64le_linux_gnu/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(__sysno: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_musl/dlfcn.rs b/tests/helper/src/gen/sys/powerpc64le_linux_musl/dlfcn.rs new file mode 100644 index 00000000..87cb3e98 --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64le_linux_musl/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + arg1: *mut ::core::ffi::c_void, + arg2: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_musl/elf.rs b/tests/helper/src/gen/sys/powerpc64le_linux_musl/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_musl/elf.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_musl/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_asm_cputable.rs b/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_asm_cputable.rs index ab8b307b..905b1aaa 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_asm_cputable.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_asm_cputable.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const PPC_FEATURE_32: u32 = 2147483648; pub const PPC_FEATURE_64: u32 = 1073741824; pub const PPC_FEATURE_601_INSTR: u32 = 536870912; diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_asm_unistd.rs index c7c14019..1fcd97eb 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_restart_syscall: u32 = 0; pub const __NR_exit: u32 = 1; pub const __NR_fork: u32 = 2; diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_linux_auxvec.rs index 2b4a98be..16bf174c 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_linux_auxvec.rs @@ -3,7 +3,47 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_DCACHEBSIZE: u32 = 19; +pub const AT_ICACHEBSIZE: u32 = 20; +pub const AT_UCACHEBSIZE: u32 = 21; +pub const AT_IGNOREPPC: u32 = 22; +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_L1I_CACHESIZE: u32 = 40; +pub const AT_L1I_CACHEGEOMETRY: u32 = 41; +pub const AT_L1D_CACHESIZE: u32 = 42; +pub const AT_L1D_CACHEGEOMETRY: u32 = 43; +pub const AT_L2_CACHESIZE: u32 = 44; +pub const AT_L2_CACHEGEOMETRY: u32 = 45; +pub const AT_L3_CACHESIZE: u32 = 46; +pub const AT_L3_CACHEGEOMETRY: u32 = 47; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_VECTOR_SIZE_ARCH: u32 = 15; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_musl/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_musl/mod.rs b/tests/helper/src/gen/sys/powerpc64le_linux_musl/mod.rs index 3afae438..288fd00f 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_musl/mod.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_musl/mod.rs @@ -4,13 +4,50 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_cputable; +pub use linux_headers_asm_cputable::PPC_FEATURE_32; +pub use linux_headers_asm_cputable::PPC_FEATURE_64; +pub use linux_headers_asm_cputable::PPC_FEATURE_601_INSTR; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_ALTIVEC; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_FPU; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_MMU; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_4xxMAC; +pub use linux_headers_asm_cputable::PPC_FEATURE_UNIFIED_CACHE; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_SPE; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_SINGLE; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_DOUBLE; +pub use linux_headers_asm_cputable::PPC_FEATURE_NO_TB; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER4; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5_PLUS; +pub use linux_headers_asm_cputable::PPC_FEATURE_CELL; +pub use linux_headers_asm_cputable::PPC_FEATURE_BOOKE; +pub use linux_headers_asm_cputable::PPC_FEATURE_SMT; +pub use linux_headers_asm_cputable::PPC_FEATURE_ICACHE_SNOOP; +pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_05; +pub use linux_headers_asm_cputable::PPC_FEATURE_PA6T; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_DFP; +pub use linux_headers_asm_cputable::PPC_FEATURE_POWER6_EXT; +pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_06; +pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_VSX; +pub use linux_headers_asm_cputable::PPC_FEATURE_PSERIES_PERFMON_COMPAT; +pub use linux_headers_asm_cputable::PPC_FEATURE_TRUE_LE; +pub use linux_headers_asm_cputable::PPC_FEATURE_PPC_LE; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_2_07; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM; +pub use linux_headers_asm_cputable::PPC_FEATURE2_DSCR; +pub use linux_headers_asm_cputable::PPC_FEATURE2_EBB; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ISEL; +pub use linux_headers_asm_cputable::PPC_FEATURE2_TAR; +pub use linux_headers_asm_cputable::PPC_FEATURE2_VEC_CRYPTO; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NOSC; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_00; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HAS_IEEE128; +pub use linux_headers_asm_cputable::PPC_FEATURE2_DARN; +pub use linux_headers_asm_cputable::PPC_FEATURE2_SCV; +pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NO_SUSPEND; +pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_1; +pub use linux_headers_asm_cputable::PPC_FEATURE2_MMA; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_restart_syscall; pub use linux_headers_asm_unistd::__NR_exit; @@ -427,53 +464,242 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_cputable; -pub use linux_headers_asm_cputable::PPC_FEATURE_32; -pub use linux_headers_asm_cputable::PPC_FEATURE_64; -pub use linux_headers_asm_cputable::PPC_FEATURE_601_INSTR; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_ALTIVEC; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_FPU; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_MMU; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_4xxMAC; -pub use linux_headers_asm_cputable::PPC_FEATURE_UNIFIED_CACHE; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_SPE; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_SINGLE; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_EFP_DOUBLE; -pub use linux_headers_asm_cputable::PPC_FEATURE_NO_TB; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER4; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER5_PLUS; -pub use linux_headers_asm_cputable::PPC_FEATURE_CELL; -pub use linux_headers_asm_cputable::PPC_FEATURE_BOOKE; -pub use linux_headers_asm_cputable::PPC_FEATURE_SMT; -pub use linux_headers_asm_cputable::PPC_FEATURE_ICACHE_SNOOP; -pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_05; -pub use linux_headers_asm_cputable::PPC_FEATURE_PA6T; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_DFP; -pub use linux_headers_asm_cputable::PPC_FEATURE_POWER6_EXT; -pub use linux_headers_asm_cputable::PPC_FEATURE_ARCH_2_06; -pub use linux_headers_asm_cputable::PPC_FEATURE_HAS_VSX; -pub use linux_headers_asm_cputable::PPC_FEATURE_PSERIES_PERFMON_COMPAT; -pub use linux_headers_asm_cputable::PPC_FEATURE_TRUE_LE; -pub use linux_headers_asm_cputable::PPC_FEATURE_PPC_LE; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_2_07; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM; -pub use linux_headers_asm_cputable::PPC_FEATURE2_DSCR; -pub use linux_headers_asm_cputable::PPC_FEATURE2_EBB; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ISEL; -pub use linux_headers_asm_cputable::PPC_FEATURE2_TAR; -pub use linux_headers_asm_cputable::PPC_FEATURE2_VEC_CRYPTO; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NOSC; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_00; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HAS_IEEE128; -pub use linux_headers_asm_cputable::PPC_FEATURE2_DARN; -pub use linux_headers_asm_cputable::PPC_FEATURE2_SCV; -pub use linux_headers_asm_cputable::PPC_FEATURE2_HTM_NO_SUSPEND; -pub use linux_headers_asm_cputable::PPC_FEATURE2_ARCH_3_1; -pub use linux_headers_asm_cputable::PPC_FEATURE2_MMA; -mod sys_auxv; -pub use sys_auxv::getauxval; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_DCACHEBSIZE; +pub use linux_headers_linux_auxvec::AT_ICACHEBSIZE; +pub use linux_headers_linux_auxvec::AT_UCACHEBSIZE; +pub use linux_headers_linux_auxvec::AT_IGNOREPPC; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_L1I_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1I_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L1D_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1D_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L2_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L2_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L3_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L3_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_musl/sys_auxv.rs b/tests/helper/src/gen/sys/powerpc64le_linux_musl/sys_auxv.rs index b6d1eb82..fc602aeb 100644 --- a/tests/helper/src/gen/sys/powerpc64le_linux_musl/sys_auxv.rs +++ b/tests/helper/src/gen/sys/powerpc64le_linux_musl/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(arg1: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_musl/sys_prctl.rs b/tests/helper/src/gen/sys/powerpc64le_linux_musl/sys_prctl.rs new file mode 100644 index 00000000..89f0295b --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64le_linux_musl/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/powerpc64le_linux_musl/unistd.rs b/tests/helper/src/gen/sys/powerpc64le_linux_musl/unistd.rs new file mode 100644 index 00000000..d16be956 --- /dev/null +++ b/tests/helper/src/gen/sys/powerpc64le_linux_musl/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(arg1: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/dlfcn.rs b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/dlfcn.rs new file mode 100644 index 00000000..0c516f36 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + __handle: *mut ::core::ffi::c_void, + __name: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/elf.rs b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/elf.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_asm_hwcap.rs b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_asm_hwcap.rs new file mode 100644 index 00000000..fc615659 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_asm_hwcap.rs @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_asm_hwprobe.rs b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_asm_hwprobe.rs index ee3d3d30..ae69d15b 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_asm_hwprobe.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_asm_hwprobe.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type __s64 = ::std::os::raw::c_longlong; pub type __u64 = ::std::os::raw::c_ulonglong; #[repr(C)] diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_asm_unistd.rs index dd60fb0f..0b469b53 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_io_setup: u32 = 0; pub const __NR_io_destroy: u32 = 1; pub const __NR_io_submit: u32 = 2; diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_linux_auxvec.rs index 2b4a98be..dcb2f60d 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_linux_auxvec.rs @@ -3,7 +3,43 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_L1I_CACHESIZE: u32 = 40; +pub const AT_L1I_CACHEGEOMETRY: u32 = 41; +pub const AT_L1D_CACHESIZE: u32 = 42; +pub const AT_L1D_CACHEGEOMETRY: u32 = 43; +pub const AT_L2_CACHESIZE: u32 = 44; +pub const AT_L2_CACHEGEOMETRY: u32 = 45; +pub const AT_L3_CACHESIZE: u32 = 46; +pub const AT_L3_CACHEGEOMETRY: u32 = 47; +pub const AT_VECTOR_SIZE_ARCH: u32 = 10; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/mod.rs b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/mod.rs index 97ae2f29..4819b727 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/mod.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/mod.rs @@ -4,13 +4,81 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_hwcap; +mod linux_headers_asm_hwprobe; +pub use linux_headers_asm_hwprobe::riscv_hwprobe; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MVENDORID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MARCHID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MIMPID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_BASE_BEHAVIOR; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_BASE_BEHAVIOR_IMA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_IMA_EXT_0; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_FD; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_C; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_V; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICBOZ; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKX; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKND; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKT; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKG; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKT; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFHMIN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTNTL; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFHMIN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZTSO; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZACAS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICOND; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTPAUSE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32X; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32F; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64X; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64F; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64D; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIMOP; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCD; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCF; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCMOP; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZAWRS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_CPUPERF_0; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNKNOWN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_EMULATED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SLOW; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_FAST; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNSUPPORTED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_MASK; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_HIGHEST_VIRT_ADDRESS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_TIME_CSR_FREQ; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MISALIGNED_SCALAR_PERF; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNKNOWN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_EMULATED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_SLOW; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_FAST; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNSUPPORTED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_WHICH_CPUS; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_io_setup; pub use linux_headers_asm_unistd::__NR_io_destroy; @@ -321,83 +389,240 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_hwprobe; -pub use linux_headers_asm_hwprobe::riscv_hwprobe; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MVENDORID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MARCHID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MIMPID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_BASE_BEHAVIOR; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_BASE_BEHAVIOR_IMA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_IMA_EXT_0; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_FD; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_C; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_V; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICBOZ; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKX; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKND; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKT; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKG; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKT; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFHMIN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTNTL; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFHMIN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZTSO; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZACAS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICOND; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTPAUSE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32X; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32F; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64X; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64F; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64D; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIMOP; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCD; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCF; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCMOP; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZAWRS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_CPUPERF_0; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNKNOWN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_EMULATED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SLOW; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_FAST; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNSUPPORTED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_MASK; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_HIGHEST_VIRT_ADDRESS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_TIME_CSR_FREQ; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MISALIGNED_SCALAR_PERF; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNKNOWN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_EMULATED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_SLOW; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_FAST; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNSUPPORTED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_WHICH_CPUS; -mod sys_auxv; -pub use sys_auxv::getauxval; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_L1I_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1I_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L1D_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1D_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L2_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L2_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L3_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L3_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_hwprobe; +pub use sys_hwprobe::__riscv_hwprobe; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/sys_auxv.rs b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/sys_auxv.rs index aeae8561..1fe1c678 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/sys_auxv.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(__type: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/sys_hwprobe.rs b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/sys_hwprobe.rs new file mode 100644 index 00000000..1c551ecd --- /dev/null +++ b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/sys_hwprobe.rs @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub type __s64 = ::std::os::raw::c_longlong; +pub type __u64 = ::std::os::raw::c_ulonglong; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct riscv_hwprobe { + pub key: __s64, + pub value: __u64, +} +extern "C" { + pub fn __riscv_hwprobe( + __pairs: *mut riscv_hwprobe, + __pair_count: usize, + __cpu_count: usize, + __cpus: *mut ::std::os::raw::c_ulong, + __flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/sys_prctl.rs b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/sys_prctl.rs new file mode 100644 index 00000000..2daf3d5a --- /dev/null +++ b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(__option: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_gnu/unistd.rs b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/unistd.rs new file mode 100644 index 00000000..eab78d00 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv32gc_linux_gnu/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(__sysno: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_musl/dlfcn.rs b/tests/helper/src/gen/sys/riscv32gc_linux_musl/dlfcn.rs new file mode 100644 index 00000000..87cb3e98 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv32gc_linux_musl/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + arg1: *mut ::core::ffi::c_void, + arg2: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_musl/elf.rs b/tests/helper/src/gen/sys/riscv32gc_linux_musl/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_musl/elf.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_musl/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_asm_hwcap.rs b/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_asm_hwcap.rs new file mode 100644 index 00000000..fc615659 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_asm_hwcap.rs @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_asm_hwprobe.rs b/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_asm_hwprobe.rs index ee3d3d30..ae69d15b 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_asm_hwprobe.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_asm_hwprobe.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type __s64 = ::std::os::raw::c_longlong; pub type __u64 = ::std::os::raw::c_ulonglong; #[repr(C)] diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_asm_unistd.rs index dd60fb0f..0b469b53 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_io_setup: u32 = 0; pub const __NR_io_destroy: u32 = 1; pub const __NR_io_submit: u32 = 2; diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_linux_auxvec.rs index 2b4a98be..dcb2f60d 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_linux_auxvec.rs @@ -3,7 +3,43 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_L1I_CACHESIZE: u32 = 40; +pub const AT_L1I_CACHEGEOMETRY: u32 = 41; +pub const AT_L1D_CACHESIZE: u32 = 42; +pub const AT_L1D_CACHEGEOMETRY: u32 = 43; +pub const AT_L2_CACHESIZE: u32 = 44; +pub const AT_L2_CACHEGEOMETRY: u32 = 45; +pub const AT_L3_CACHESIZE: u32 = 46; +pub const AT_L3_CACHEGEOMETRY: u32 = 47; +pub const AT_VECTOR_SIZE_ARCH: u32 = 10; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_musl/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_musl/mod.rs b/tests/helper/src/gen/sys/riscv32gc_linux_musl/mod.rs index 97ae2f29..53193d7d 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_musl/mod.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_musl/mod.rs @@ -4,13 +4,81 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_hwcap; +mod linux_headers_asm_hwprobe; +pub use linux_headers_asm_hwprobe::riscv_hwprobe; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MVENDORID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MARCHID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MIMPID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_BASE_BEHAVIOR; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_BASE_BEHAVIOR_IMA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_IMA_EXT_0; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_FD; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_C; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_V; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICBOZ; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKX; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKND; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKT; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKG; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKT; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFHMIN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTNTL; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFHMIN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZTSO; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZACAS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICOND; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTPAUSE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32X; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32F; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64X; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64F; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64D; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIMOP; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCD; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCF; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCMOP; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZAWRS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_CPUPERF_0; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNKNOWN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_EMULATED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SLOW; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_FAST; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNSUPPORTED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_MASK; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_HIGHEST_VIRT_ADDRESS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_TIME_CSR_FREQ; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MISALIGNED_SCALAR_PERF; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNKNOWN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_EMULATED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_SLOW; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_FAST; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNSUPPORTED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_WHICH_CPUS; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_io_setup; pub use linux_headers_asm_unistd::__NR_io_destroy; @@ -321,83 +389,238 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_hwprobe; -pub use linux_headers_asm_hwprobe::riscv_hwprobe; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MVENDORID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MARCHID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MIMPID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_BASE_BEHAVIOR; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_BASE_BEHAVIOR_IMA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_IMA_EXT_0; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_FD; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_C; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_V; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICBOZ; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKX; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKND; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKT; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKG; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKT; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFHMIN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTNTL; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFHMIN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZTSO; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZACAS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICOND; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTPAUSE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32X; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32F; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64X; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64F; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64D; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIMOP; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCD; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCF; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCMOP; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZAWRS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_CPUPERF_0; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNKNOWN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_EMULATED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SLOW; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_FAST; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNSUPPORTED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_MASK; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_HIGHEST_VIRT_ADDRESS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_TIME_CSR_FREQ; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MISALIGNED_SCALAR_PERF; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNKNOWN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_EMULATED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_SLOW; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_FAST; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNSUPPORTED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_WHICH_CPUS; -mod sys_auxv; -pub use sys_auxv::getauxval; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_L1I_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1I_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L1D_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1D_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L2_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L2_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L3_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L3_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_musl/sys_auxv.rs b/tests/helper/src/gen/sys/riscv32gc_linux_musl/sys_auxv.rs index b6d1eb82..fc602aeb 100644 --- a/tests/helper/src/gen/sys/riscv32gc_linux_musl/sys_auxv.rs +++ b/tests/helper/src/gen/sys/riscv32gc_linux_musl/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(arg1: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_musl/sys_prctl.rs b/tests/helper/src/gen/sys/riscv32gc_linux_musl/sys_prctl.rs new file mode 100644 index 00000000..89f0295b --- /dev/null +++ b/tests/helper/src/gen/sys/riscv32gc_linux_musl/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/riscv32gc_linux_musl/unistd.rs b/tests/helper/src/gen/sys/riscv32gc_linux_musl/unistd.rs new file mode 100644 index 00000000..d16be956 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv32gc_linux_musl/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(arg1: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/riscv64_linux_android/dlfcn.rs b/tests/helper/src/gen/sys/riscv64_linux_android/dlfcn.rs new file mode 100644 index 00000000..70c321a7 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64_linux_android/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn dlsym( + __handle: *mut ::core::ffi::c_void, + __symbol: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); diff --git a/tests/helper/src/gen/sys/riscv64_linux_android/elf.rs b/tests/helper/src/gen/sys/riscv64_linux_android/elf.rs index d776ec3a..67652ede 100644 --- a/tests/helper/src/gen/sys/riscv64_linux_android/elf.rs +++ b/tests/helper/src/gen/sys/riscv64_linux_android/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type __u32 = ::std::os::raw::c_uint; pub type __u64 = ::std::os::raw::c_ulonglong; #[repr(C)] diff --git a/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_asm_hwcap.rs b/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_asm_hwcap.rs new file mode 100644 index 00000000..fc615659 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_asm_hwcap.rs @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + diff --git a/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_asm_hwprobe.rs b/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_asm_hwprobe.rs index ee3d3d30..ae69d15b 100644 --- a/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_asm_hwprobe.rs +++ b/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_asm_hwprobe.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type __s64 = ::std::os::raw::c_longlong; pub type __u64 = ::std::os::raw::c_ulonglong; #[repr(C)] diff --git a/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_asm_unistd.rs index a2c4d472..2854c53b 100644 --- a/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_io_setup: u32 = 0; pub const __NR_io_destroy: u32 = 1; pub const __NR_io_submit: u32 = 2; diff --git a/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_linux_auxvec.rs index 2b4a98be..dcb2f60d 100644 --- a/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_linux_auxvec.rs @@ -3,7 +3,43 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_L1I_CACHESIZE: u32 = 40; +pub const AT_L1I_CACHEGEOMETRY: u32 = 41; +pub const AT_L1D_CACHESIZE: u32 = 42; +pub const AT_L1D_CACHEGEOMETRY: u32 = 43; +pub const AT_L2_CACHESIZE: u32 = 44; +pub const AT_L2_CACHEGEOMETRY: u32 = 45; +pub const AT_L3_CACHESIZE: u32 = 46; +pub const AT_L3_CACHEGEOMETRY: u32 = 47; +pub const AT_VECTOR_SIZE_ARCH: u32 = 10; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/riscv64_linux_android/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/riscv64_linux_android/mod.rs b/tests/helper/src/gen/sys/riscv64_linux_android/mod.rs index 88c31bba..9c8a211e 100644 --- a/tests/helper/src/gen/sys/riscv64_linux_android/mod.rs +++ b/tests/helper/src/gen/sys/riscv64_linux_android/mod.rs @@ -4,13 +4,81 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_hwcap; +mod linux_headers_asm_hwprobe; +pub use linux_headers_asm_hwprobe::riscv_hwprobe; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MVENDORID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MARCHID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MIMPID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_BASE_BEHAVIOR; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_BASE_BEHAVIOR_IMA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_IMA_EXT_0; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_FD; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_C; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_V; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICBOZ; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKX; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKND; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKT; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKG; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKT; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFHMIN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTNTL; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFHMIN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZTSO; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZACAS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICOND; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTPAUSE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32X; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32F; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64X; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64F; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64D; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIMOP; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCD; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCF; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCMOP; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZAWRS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_CPUPERF_0; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNKNOWN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_EMULATED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SLOW; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_FAST; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNSUPPORTED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_MASK; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_HIGHEST_VIRT_ADDRESS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_TIME_CSR_FREQ; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MISALIGNED_SCALAR_PERF; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNKNOWN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_EMULATED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_SLOW; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_FAST; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNSUPPORTED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_WHICH_CPUS; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_io_setup; pub use linux_headers_asm_unistd::__NR_io_destroy; @@ -331,83 +399,238 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_hwprobe; -pub use linux_headers_asm_hwprobe::riscv_hwprobe; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MVENDORID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MARCHID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MIMPID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_BASE_BEHAVIOR; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_BASE_BEHAVIOR_IMA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_IMA_EXT_0; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_FD; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_C; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_V; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICBOZ; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKX; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKND; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKT; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKG; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKT; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFHMIN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTNTL; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFHMIN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZTSO; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZACAS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICOND; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTPAUSE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32X; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32F; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64X; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64F; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64D; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIMOP; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCD; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCF; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCMOP; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZAWRS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_CPUPERF_0; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNKNOWN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_EMULATED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SLOW; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_FAST; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNSUPPORTED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_MASK; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_HIGHEST_VIRT_ADDRESS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_TIME_CSR_FREQ; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MISALIGNED_SCALAR_PERF; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNKNOWN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_EMULATED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_SLOW; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_FAST; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNSUPPORTED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_WHICH_CPUS; -mod sys_auxv; -pub use sys_auxv::getauxval; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_L1I_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1I_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L1D_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1D_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L2_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L2_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L3_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L3_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::dlsym; +pub use dlfcn::RTLD_DEFAULT; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/riscv64_linux_android/sys_auxv.rs b/tests/helper/src/gen/sys/riscv64_linux_android/sys_auxv.rs index aeae8561..1fe1c678 100644 --- a/tests/helper/src/gen/sys/riscv64_linux_android/sys_auxv.rs +++ b/tests/helper/src/gen/sys/riscv64_linux_android/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(__type: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/riscv64_linux_android/sys_prctl.rs b/tests/helper/src/gen/sys/riscv64_linux_android/sys_prctl.rs new file mode 100644 index 00000000..b064aea3 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64_linux_android/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(__op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/riscv64_linux_android/unistd.rs b/tests/helper/src/gen/sys/riscv64_linux_android/unistd.rs new file mode 100644 index 00000000..3d81fa05 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64_linux_android/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(__number: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/riscv64gc_freebsd/dlfcn.rs b/tests/helper/src/gen/sys/riscv64gc_freebsd/dlfcn.rs new file mode 100644 index 00000000..e7bac10c --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64gc_freebsd/dlfcn.rs @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = -2i8 + as *mut ::std::os::raw::c_void; +extern "C" { + pub fn dlsym( + arg1: *mut ::core::ffi::c_void, + arg2: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/riscv64gc_freebsd/mod.rs b/tests/helper/src/gen/sys/riscv64gc_freebsd/mod.rs index 4c9e4b84..2a117d6c 100644 --- a/tests/helper/src/gen/sys/riscv64gc_freebsd/mod.rs +++ b/tests/helper/src/gen/sys/riscv64gc_freebsd/mod.rs @@ -4,6 +4,9 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod sys_auxv; pub use sys_auxv::elf_aux_info; mod sys_syscall; @@ -443,8 +446,44 @@ pub use sys_sysctl::KERN_PROC; pub use sys_sysctl::KERN_PROC_AUXV; pub use sys_sysctl::sysctl; mod sys_elf_common; +pub use sys_elf_common::AT_NULL; +pub use sys_elf_common::AT_IGNORE; +pub use sys_elf_common::AT_EXECFD; +pub use sys_elf_common::AT_PHDR; +pub use sys_elf_common::AT_PHENT; +pub use sys_elf_common::AT_PHNUM; +pub use sys_elf_common::AT_PAGESZ; +pub use sys_elf_common::AT_BASE; +pub use sys_elf_common::AT_FLAGS; +pub use sys_elf_common::AT_ENTRY; +pub use sys_elf_common::AT_NOTELF; +pub use sys_elf_common::AT_UID; +pub use sys_elf_common::AT_EUID; +pub use sys_elf_common::AT_GID; +pub use sys_elf_common::AT_EGID; +pub use sys_elf_common::AT_EXECPATH; +pub use sys_elf_common::AT_CANARY; +pub use sys_elf_common::AT_CANARYLEN; +pub use sys_elf_common::AT_OSRELDATE; +pub use sys_elf_common::AT_NCPUS; +pub use sys_elf_common::AT_PAGESIZES; +pub use sys_elf_common::AT_PAGESIZESLEN; +pub use sys_elf_common::AT_TIMEKEEP; +pub use sys_elf_common::AT_STACKPROT; +pub use sys_elf_common::AT_EHDRFLAGS; pub use sys_elf_common::AT_HWCAP; pub use sys_elf_common::AT_HWCAP2; +pub use sys_elf_common::AT_BSDFLAGS; +pub use sys_elf_common::AT_ARGC; +pub use sys_elf_common::AT_ARGV; +pub use sys_elf_common::AT_ENVC; +pub use sys_elf_common::AT_ENVV; +pub use sys_elf_common::AT_PS_STRINGS; +pub use sys_elf_common::AT_FXRNG; +pub use sys_elf_common::AT_KPRELOAD; +pub use sys_elf_common::AT_USRSTACKBASE; +pub use sys_elf_common::AT_USRSTACKLIM; +pub use sys_elf_common::AT_CHERI_STATS; pub use sys_elf_common::AT_COUNT; mod unistd; pub use unistd::getpid; diff --git a/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_auxv.rs b/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_auxv.rs index 78daf7e3..7b6c1be2 100644 --- a/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_auxv.rs +++ b/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn elf_aux_info( aux: ::std::os::raw::c_int, diff --git a/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_elf_common.rs b/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_elf_common.rs index f1075df3..85bae3b6 100644 --- a/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_elf_common.rs +++ b/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_elf_common.rs @@ -3,6 +3,44 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_EXECPATH: u32 = 15; +pub const AT_CANARY: u32 = 16; +pub const AT_CANARYLEN: u32 = 17; +pub const AT_OSRELDATE: u32 = 18; +pub const AT_NCPUS: u32 = 19; +pub const AT_PAGESIZES: u32 = 20; +pub const AT_PAGESIZESLEN: u32 = 21; +pub const AT_TIMEKEEP: u32 = 22; +pub const AT_STACKPROT: u32 = 23; +pub const AT_EHDRFLAGS: u32 = 24; pub const AT_HWCAP: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_BSDFLAGS: u32 = 27; +pub const AT_ARGC: u32 = 28; +pub const AT_ARGV: u32 = 29; +pub const AT_ENVC: u32 = 30; +pub const AT_ENVV: u32 = 31; +pub const AT_PS_STRINGS: u32 = 32; +pub const AT_FXRNG: u32 = 33; +pub const AT_KPRELOAD: u32 = 34; +pub const AT_USRSTACKBASE: u32 = 35; +pub const AT_USRSTACKLIM: u32 = 36; +pub const AT_CHERI_STATS: u32 = 37; pub const AT_COUNT: u32 = 38; diff --git a/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_syscall.rs b/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_syscall.rs index ca887596..9437b0b4 100644 --- a/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_syscall.rs +++ b/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_syscall.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const SYS_syscall: u32 = 0; pub const SYS_exit: u32 = 1; pub const SYS_fork: u32 = 2; diff --git a/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_sysctl.rs b/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_sysctl.rs index 49a2356c..4eb45c3a 100644 --- a/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/riscv64gc_freebsd/sys_sysctl.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const CTL_KERN: u32 = 1; pub const KERN_PROC: u32 = 14; pub const KERN_PROC_AUXV: u32 = 36; diff --git a/tests/helper/src/gen/sys/riscv64gc_freebsd/unistd.rs b/tests/helper/src/gen/sys/riscv64gc_freebsd/unistd.rs index a65ffc02..43120343 100644 --- a/tests/helper/src/gen/sys/riscv64gc_freebsd/unistd.rs +++ b/tests/helper/src/gen/sys/riscv64gc_freebsd/unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type __int32_t = ::std::os::raw::c_int; pub type __pid_t = __int32_t; pub type pid_t = __pid_t; diff --git a/tests/helper/src/gen/sys/riscv64gc_fuchsia/zircon_system_public_zircon_errors.rs b/tests/helper/src/gen/sys/riscv64gc_fuchsia/zircon_system_public_zircon_errors.rs index de7f06d8..b077ae8e 100644 --- a/tests/helper/src/gen/sys/riscv64gc_fuchsia/zircon_system_public_zircon_errors.rs +++ b/tests/helper/src/gen/sys/riscv64gc_fuchsia/zircon_system_public_zircon_errors.rs @@ -3,4 +3,6 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const ZX_OK: u32 = 0; diff --git a/tests/helper/src/gen/sys/riscv64gc_fuchsia/zircon_system_public_zircon_features.rs b/tests/helper/src/gen/sys/riscv64gc_fuchsia/zircon_system_public_zircon_features.rs index b28387df..a06b9459 100644 --- a/tests/helper/src/gen/sys/riscv64gc_fuchsia/zircon_system_public_zircon_features.rs +++ b/tests/helper/src/gen/sys/riscv64gc_fuchsia/zircon_system_public_zircon_features.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const ZX_FEATURE_KIND_CPU: u32 = 0u8 as u32; pub const ZX_FEATURE_KIND_HW_BREAKPOINT_COUNT: u32 = 1u8 as u32; pub const ZX_FEATURE_KIND_HW_WATCHPOINT_COUNT: u32 = 2u8 as u32; diff --git a/tests/helper/src/gen/sys/riscv64gc_fuchsia/zircon_system_public_zircon_types.rs b/tests/helper/src/gen/sys/riscv64gc_fuchsia/zircon_system_public_zircon_types.rs index 672a86e5..2821fdd6 100644 --- a/tests/helper/src/gen/sys/riscv64gc_fuchsia/zircon_system_public_zircon_types.rs +++ b/tests/helper/src/gen/sys/riscv64gc_fuchsia/zircon_system_public_zircon_types.rs @@ -3,4 +3,6 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type zx_status_t = i32; diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/dlfcn.rs b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/dlfcn.rs new file mode 100644 index 00000000..0c516f36 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + __handle: *mut ::core::ffi::c_void, + __name: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/elf.rs b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/elf.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_asm_hwcap.rs b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_asm_hwcap.rs new file mode 100644 index 00000000..fc615659 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_asm_hwcap.rs @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_asm_hwprobe.rs b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_asm_hwprobe.rs index ee3d3d30..ae69d15b 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_asm_hwprobe.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_asm_hwprobe.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type __s64 = ::std::os::raw::c_longlong; pub type __u64 = ::std::os::raw::c_ulonglong; #[repr(C)] diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_asm_unistd.rs index a2c4d472..2854c53b 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_io_setup: u32 = 0; pub const __NR_io_destroy: u32 = 1; pub const __NR_io_submit: u32 = 2; diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_linux_auxvec.rs index 2b4a98be..dcb2f60d 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_linux_auxvec.rs @@ -3,7 +3,43 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_L1I_CACHESIZE: u32 = 40; +pub const AT_L1I_CACHEGEOMETRY: u32 = 41; +pub const AT_L1D_CACHESIZE: u32 = 42; +pub const AT_L1D_CACHEGEOMETRY: u32 = 43; +pub const AT_L2_CACHESIZE: u32 = 44; +pub const AT_L2_CACHEGEOMETRY: u32 = 45; +pub const AT_L3_CACHESIZE: u32 = 46; +pub const AT_L3_CACHEGEOMETRY: u32 = 47; +pub const AT_VECTOR_SIZE_ARCH: u32 = 10; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/mod.rs b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/mod.rs index 88c31bba..442a97c7 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/mod.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/mod.rs @@ -4,13 +4,81 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_hwcap; +mod linux_headers_asm_hwprobe; +pub use linux_headers_asm_hwprobe::riscv_hwprobe; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MVENDORID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MARCHID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MIMPID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_BASE_BEHAVIOR; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_BASE_BEHAVIOR_IMA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_IMA_EXT_0; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_FD; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_C; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_V; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICBOZ; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKX; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKND; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKT; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKG; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKT; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFHMIN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTNTL; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFHMIN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZTSO; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZACAS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICOND; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTPAUSE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32X; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32F; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64X; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64F; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64D; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIMOP; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCD; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCF; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCMOP; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZAWRS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_CPUPERF_0; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNKNOWN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_EMULATED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SLOW; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_FAST; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNSUPPORTED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_MASK; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_HIGHEST_VIRT_ADDRESS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_TIME_CSR_FREQ; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MISALIGNED_SCALAR_PERF; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNKNOWN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_EMULATED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_SLOW; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_FAST; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNSUPPORTED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_WHICH_CPUS; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_io_setup; pub use linux_headers_asm_unistd::__NR_io_destroy; @@ -331,83 +399,240 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_hwprobe; -pub use linux_headers_asm_hwprobe::riscv_hwprobe; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MVENDORID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MARCHID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MIMPID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_BASE_BEHAVIOR; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_BASE_BEHAVIOR_IMA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_IMA_EXT_0; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_FD; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_C; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_V; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICBOZ; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKX; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKND; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKT; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKG; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKT; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFHMIN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTNTL; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFHMIN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZTSO; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZACAS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICOND; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTPAUSE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32X; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32F; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64X; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64F; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64D; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIMOP; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCD; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCF; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCMOP; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZAWRS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_CPUPERF_0; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNKNOWN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_EMULATED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SLOW; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_FAST; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNSUPPORTED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_MASK; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_HIGHEST_VIRT_ADDRESS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_TIME_CSR_FREQ; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MISALIGNED_SCALAR_PERF; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNKNOWN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_EMULATED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_SLOW; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_FAST; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNSUPPORTED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_WHICH_CPUS; -mod sys_auxv; -pub use sys_auxv::getauxval; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_L1I_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1I_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L1D_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1D_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L2_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L2_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L3_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L3_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_hwprobe; +pub use sys_hwprobe::__riscv_hwprobe; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/sys_auxv.rs b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/sys_auxv.rs index aeae8561..1fe1c678 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/sys_auxv.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(__type: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/sys_hwprobe.rs b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/sys_hwprobe.rs new file mode 100644 index 00000000..1c551ecd --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/sys_hwprobe.rs @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub type __s64 = ::std::os::raw::c_longlong; +pub type __u64 = ::std::os::raw::c_ulonglong; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct riscv_hwprobe { + pub key: __s64, + pub value: __u64, +} +extern "C" { + pub fn __riscv_hwprobe( + __pairs: *mut riscv_hwprobe, + __pair_count: usize, + __cpu_count: usize, + __cpus: *mut ::std::os::raw::c_ulong, + __flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/sys_prctl.rs b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/sys_prctl.rs new file mode 100644 index 00000000..2daf3d5a --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(__option: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_gnu/unistd.rs b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/unistd.rs new file mode 100644 index 00000000..eab78d00 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64gc_linux_gnu/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(__sysno: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_musl/dlfcn.rs b/tests/helper/src/gen/sys/riscv64gc_linux_musl/dlfcn.rs new file mode 100644 index 00000000..87cb3e98 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64gc_linux_musl/dlfcn.rs @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = ::core::ptr::null_mut(); +extern "C" { + pub fn dlsym( + arg1: *mut ::core::ffi::c_void, + arg2: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_musl/elf.rs b/tests/helper/src/gen/sys/riscv64gc_linux_musl/elf.rs index cc057e90..a3c1790d 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_musl/elf.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_musl/elf.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + #[repr(C)] #[derive(Copy, Clone)] pub struct Elf32_auxv_t { diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_asm_hwcap.rs b/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_asm_hwcap.rs new file mode 100644 index 00000000..fc615659 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_asm_hwcap.rs @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_asm_hwprobe.rs b/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_asm_hwprobe.rs index ee3d3d30..ae69d15b 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_asm_hwprobe.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_asm_hwprobe.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type __s64 = ::std::os::raw::c_longlong; pub type __u64 = ::std::os::raw::c_ulonglong; #[repr(C)] diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_asm_unistd.rs b/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_asm_unistd.rs index a2c4d472..2854c53b 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_asm_unistd.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_asm_unistd.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub const __NR_io_setup: u32 = 0; pub const __NR_io_destroy: u32 = 1; pub const __NR_io_submit: u32 = 2; diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_linux_auxvec.rs b/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_linux_auxvec.rs index 2b4a98be..dcb2f60d 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_linux_auxvec.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_linux_auxvec.rs @@ -3,7 +3,43 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_SYSINFO_EHDR: u32 = 33; +pub const AT_L1I_CACHESIZE: u32 = 40; +pub const AT_L1I_CACHEGEOMETRY: u32 = 41; +pub const AT_L1D_CACHESIZE: u32 = 42; +pub const AT_L1D_CACHEGEOMETRY: u32 = 43; +pub const AT_L2_CACHESIZE: u32 = 44; +pub const AT_L2_CACHEGEOMETRY: u32 = 45; +pub const AT_L3_CACHESIZE: u32 = 46; +pub const AT_L3_CACHEGEOMETRY: u32 = 47; +pub const AT_VECTOR_SIZE_ARCH: u32 = 10; +pub const AT_MINSIGSTKSZ: u32 = 51; +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_EXECFD: u32 = 2; +pub const AT_PHDR: u32 = 3; +pub const AT_PHENT: u32 = 4; +pub const AT_PHNUM: u32 = 5; +pub const AT_PAGESZ: u32 = 6; +pub const AT_BASE: u32 = 7; +pub const AT_FLAGS: u32 = 8; +pub const AT_ENTRY: u32 = 9; +pub const AT_NOTELF: u32 = 10; +pub const AT_UID: u32 = 11; +pub const AT_EUID: u32 = 12; +pub const AT_GID: u32 = 13; +pub const AT_EGID: u32 = 14; +pub const AT_PLATFORM: u32 = 15; pub const AT_HWCAP: u32 = 16; +pub const AT_CLKTCK: u32 = 17; +pub const AT_SECURE: u32 = 23; +pub const AT_BASE_PLATFORM: u32 = 24; +pub const AT_RANDOM: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_RSEQ_FEATURE_SIZE: u32 = 27; +pub const AT_RSEQ_ALIGN: u32 = 28; pub const AT_HWCAP3: u32 = 29; pub const AT_HWCAP4: u32 = 30; +pub const AT_EXECFN: u32 = 31; diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_linux_prctl.rs b/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_linux_prctl.rs index 0d4c45c6..6eeb3021 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_linux_prctl.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_musl/linux_headers_linux_prctl.rs @@ -3,4 +3,187 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const PR_SET_PDEATHSIG: u32 = 1; +pub const PR_GET_PDEATHSIG: u32 = 2; +pub const PR_GET_DUMPABLE: u32 = 3; +pub const PR_SET_DUMPABLE: u32 = 4; +pub const PR_GET_UNALIGN: u32 = 5; +pub const PR_SET_UNALIGN: u32 = 6; +pub const PR_UNALIGN_NOPRINT: u32 = 1; +pub const PR_UNALIGN_SIGBUS: u32 = 2; +pub const PR_GET_KEEPCAPS: u32 = 7; +pub const PR_SET_KEEPCAPS: u32 = 8; +pub const PR_GET_FPEMU: u32 = 9; +pub const PR_SET_FPEMU: u32 = 10; +pub const PR_FPEMU_NOPRINT: u32 = 1; +pub const PR_FPEMU_SIGFPE: u32 = 2; +pub const PR_GET_FPEXC: u32 = 11; +pub const PR_SET_FPEXC: u32 = 12; +pub const PR_FP_EXC_SW_ENABLE: u32 = 128; +pub const PR_FP_EXC_DIV: u32 = 65536; +pub const PR_FP_EXC_OVF: u32 = 131072; +pub const PR_FP_EXC_UND: u32 = 262144; +pub const PR_FP_EXC_RES: u32 = 524288; +pub const PR_FP_EXC_INV: u32 = 1048576; +pub const PR_FP_EXC_DISABLED: u32 = 0; +pub const PR_FP_EXC_NONRECOV: u32 = 1; +pub const PR_FP_EXC_ASYNC: u32 = 2; +pub const PR_FP_EXC_PRECISE: u32 = 3; +pub const PR_GET_TIMING: u32 = 13; +pub const PR_SET_TIMING: u32 = 14; +pub const PR_TIMING_STATISTICAL: u32 = 0; +pub const PR_TIMING_TIMESTAMP: u32 = 1; +pub const PR_SET_NAME: u32 = 15; +pub const PR_GET_NAME: u32 = 16; +pub const PR_GET_ENDIAN: u32 = 19; +pub const PR_SET_ENDIAN: u32 = 20; +pub const PR_ENDIAN_BIG: u32 = 0; +pub const PR_ENDIAN_LITTLE: u32 = 1; +pub const PR_ENDIAN_PPC_LITTLE: u32 = 2; +pub const PR_GET_SECCOMP: u32 = 21; +pub const PR_SET_SECCOMP: u32 = 22; +pub const PR_CAPBSET_READ: u32 = 23; +pub const PR_CAPBSET_DROP: u32 = 24; +pub const PR_GET_TSC: u32 = 25; +pub const PR_SET_TSC: u32 = 26; +pub const PR_TSC_ENABLE: u32 = 1; +pub const PR_TSC_SIGSEGV: u32 = 2; +pub const PR_GET_SECUREBITS: u32 = 27; +pub const PR_SET_SECUREBITS: u32 = 28; +pub const PR_SET_TIMERSLACK: u32 = 29; +pub const PR_GET_TIMERSLACK: u32 = 30; +pub const PR_TASK_PERF_EVENTS_DISABLE: u32 = 31; +pub const PR_TASK_PERF_EVENTS_ENABLE: u32 = 32; +pub const PR_MCE_KILL: u32 = 33; +pub const PR_MCE_KILL_CLEAR: u32 = 0; +pub const PR_MCE_KILL_SET: u32 = 1; +pub const PR_MCE_KILL_LATE: u32 = 0; +pub const PR_MCE_KILL_EARLY: u32 = 1; +pub const PR_MCE_KILL_DEFAULT: u32 = 2; +pub const PR_MCE_KILL_GET: u32 = 34; +pub const PR_SET_MM: u32 = 35; +pub const PR_SET_MM_START_CODE: u32 = 1; +pub const PR_SET_MM_END_CODE: u32 = 2; +pub const PR_SET_MM_START_DATA: u32 = 3; +pub const PR_SET_MM_END_DATA: u32 = 4; +pub const PR_SET_MM_START_STACK: u32 = 5; +pub const PR_SET_MM_START_BRK: u32 = 6; +pub const PR_SET_MM_BRK: u32 = 7; +pub const PR_SET_MM_ARG_START: u32 = 8; +pub const PR_SET_MM_ARG_END: u32 = 9; +pub const PR_SET_MM_ENV_START: u32 = 10; +pub const PR_SET_MM_ENV_END: u32 = 11; +pub const PR_SET_MM_AUXV: u32 = 12; +pub const PR_SET_MM_EXE_FILE: u32 = 13; +pub const PR_SET_MM_MAP: u32 = 14; +pub const PR_SET_MM_MAP_SIZE: u32 = 15; +pub const PR_SET_PTRACER: u32 = 1499557217; +pub const PR_SET_PTRACER_ANY: ::std::os::raw::c_ulong = -1i8 as ::std::os::raw::c_ulong; +pub const PR_SET_CHILD_SUBREAPER: u32 = 36; +pub const PR_GET_CHILD_SUBREAPER: u32 = 37; +pub const PR_SET_NO_NEW_PRIVS: u32 = 38; +pub const PR_GET_NO_NEW_PRIVS: u32 = 39; +pub const PR_GET_TID_ADDRESS: u32 = 40; +pub const PR_SET_THP_DISABLE: u32 = 41; +pub const PR_GET_THP_DISABLE: u32 = 42; +pub const PR_MPX_ENABLE_MANAGEMENT: u32 = 43; +pub const PR_MPX_DISABLE_MANAGEMENT: u32 = 44; +pub const PR_SET_FP_MODE: u32 = 45; +pub const PR_GET_FP_MODE: u32 = 46; +pub const PR_FP_MODE_FR: u32 = 1; +pub const PR_FP_MODE_FRE: u32 = 2; +pub const PR_CAP_AMBIENT: u32 = 47; +pub const PR_CAP_AMBIENT_IS_SET: u32 = 1; +pub const PR_CAP_AMBIENT_RAISE: u32 = 2; +pub const PR_CAP_AMBIENT_LOWER: u32 = 3; +pub const PR_CAP_AMBIENT_CLEAR_ALL: u32 = 4; +pub const PR_SVE_SET_VL: u32 = 50; +pub const PR_SVE_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SVE_GET_VL: u32 = 51; +pub const PR_SVE_VL_LEN_MASK: u32 = 65535; +pub const PR_SVE_VL_INHERIT: u32 = 131072; +pub const PR_GET_SPECULATION_CTRL: u32 = 52; +pub const PR_SET_SPECULATION_CTRL: u32 = 53; +pub const PR_SPEC_STORE_BYPASS: u32 = 0; +pub const PR_SPEC_INDIRECT_BRANCH: u32 = 1; +pub const PR_SPEC_L1D_FLUSH: u32 = 2; +pub const PR_SPEC_NOT_AFFECTED: u32 = 0; +pub const PR_SPEC_PRCTL: u32 = 1; +pub const PR_SPEC_ENABLE: u32 = 2; +pub const PR_SPEC_DISABLE: u32 = 4; +pub const PR_SPEC_FORCE_DISABLE: u32 = 8; +pub const PR_SPEC_DISABLE_NOEXEC: u32 = 16; +pub const PR_PAC_RESET_KEYS: u32 = 54; +pub const PR_PAC_APIAKEY: u32 = 1; +pub const PR_PAC_APIBKEY: u32 = 2; +pub const PR_PAC_APDAKEY: u32 = 4; +pub const PR_PAC_APDBKEY: u32 = 8; +pub const PR_PAC_APGAKEY: u32 = 16; +pub const PR_SET_TAGGED_ADDR_CTRL: u32 = 55; +pub const PR_GET_TAGGED_ADDR_CTRL: u32 = 56; +pub const PR_TAGGED_ADDR_ENABLE: u32 = 1; +pub const PR_MTE_TCF_NONE: u32 = 0; +pub const PR_MTE_TCF_SYNC: u32 = 2; +pub const PR_MTE_TCF_ASYNC: u32 = 4; +pub const PR_MTE_TCF_MASK: u32 = 6; +pub const PR_MTE_TAG_SHIFT: u32 = 3; +pub const PR_MTE_TAG_MASK: u32 = 524280; +pub const PR_MTE_TCF_SHIFT: u32 = 1; +pub const PR_SET_IO_FLUSHER: u32 = 57; +pub const PR_GET_IO_FLUSHER: u32 = 58; +pub const PR_SET_SYSCALL_USER_DISPATCH: u32 = 59; +pub const PR_SYS_DISPATCH_OFF: u32 = 0; +pub const PR_SYS_DISPATCH_ON: u32 = 1; +pub const PR_PAC_SET_ENABLED_KEYS: u32 = 60; +pub const PR_PAC_GET_ENABLED_KEYS: u32 = 61; +pub const PR_SCHED_CORE: u32 = 62; +pub const PR_SCHED_CORE_GET: u32 = 0; +pub const PR_SCHED_CORE_CREATE: u32 = 1; +pub const PR_SCHED_CORE_SHARE_TO: u32 = 2; +pub const PR_SCHED_CORE_SHARE_FROM: u32 = 3; +pub const PR_SCHED_CORE_MAX: u32 = 4; +pub const PR_SCHED_CORE_SCOPE_THREAD: u32 = 0; +pub const PR_SCHED_CORE_SCOPE_THREAD_GROUP: u32 = 1; +pub const PR_SCHED_CORE_SCOPE_PROCESS_GROUP: u32 = 2; +pub const PR_SME_SET_VL: u32 = 63; +pub const PR_SME_SET_VL_ONEXEC: u32 = 262144; +pub const PR_SME_GET_VL: u32 = 64; +pub const PR_SME_VL_LEN_MASK: u32 = 65535; +pub const PR_SME_VL_INHERIT: u32 = 131072; +pub const PR_SET_MDWE: u32 = 65; +pub const PR_MDWE_REFUSE_EXEC_GAIN: u32 = 1; +pub const PR_MDWE_NO_INHERIT: u32 = 2; +pub const PR_GET_MDWE: u32 = 66; +pub const PR_SET_VMA: u32 = 1398164801; +pub const PR_SET_VMA_ANON_NAME: u32 = 0; pub const PR_GET_AUXV: u32 = 1096112214; +pub const PR_SET_MEMORY_MERGE: u32 = 67; +pub const PR_GET_MEMORY_MERGE: u32 = 68; +pub const PR_RISCV_V_SET_CONTROL: u32 = 69; +pub const PR_RISCV_V_GET_CONTROL: u32 = 70; +pub const PR_RISCV_V_VSTATE_CTRL_DEFAULT: u32 = 0; +pub const PR_RISCV_V_VSTATE_CTRL_OFF: u32 = 1; +pub const PR_RISCV_V_VSTATE_CTRL_ON: u32 = 2; +pub const PR_RISCV_V_VSTATE_CTRL_INHERIT: u32 = 16; +pub const PR_RISCV_V_VSTATE_CTRL_CUR_MASK: u32 = 3; +pub const PR_RISCV_V_VSTATE_CTRL_NEXT_MASK: u32 = 12; +pub const PR_RISCV_V_VSTATE_CTRL_MASK: u32 = 31; +pub const PR_RISCV_SET_ICACHE_FLUSH_CTX: u32 = 71; +pub const PR_RISCV_CTX_SW_FENCEI_ON: u32 = 0; +pub const PR_RISCV_CTX_SW_FENCEI_OFF: u32 = 1; +pub const PR_RISCV_SCOPE_PER_PROCESS: u32 = 0; +pub const PR_RISCV_SCOPE_PER_THREAD: u32 = 1; +pub const PR_PPC_GET_DEXCR: u32 = 72; +pub const PR_PPC_SET_DEXCR: u32 = 73; +pub const PR_PPC_DEXCR_SBHE: u32 = 0; +pub const PR_PPC_DEXCR_IBRTPD: u32 = 1; +pub const PR_PPC_DEXCR_SRAPD: u32 = 2; +pub const PR_PPC_DEXCR_NPHIE: u32 = 3; +pub const PR_PPC_DEXCR_CTRL_EDITABLE: u32 = 1; +pub const PR_PPC_DEXCR_CTRL_SET: u32 = 2; +pub const PR_PPC_DEXCR_CTRL_CLEAR: u32 = 4; +pub const PR_PPC_DEXCR_CTRL_SET_ONEXEC: u32 = 8; +pub const PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC: u32 = 16; +pub const PR_PPC_DEXCR_CTRL_MASK: u32 = 31; diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_musl/mod.rs b/tests/helper/src/gen/sys/riscv64gc_linux_musl/mod.rs index 88c31bba..4bb2206f 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_musl/mod.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_musl/mod.rs @@ -4,13 +4,81 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod linux_headers_linux_auxvec; -pub use linux_headers_linux_auxvec::AT_HWCAP; -pub use linux_headers_linux_auxvec::AT_HWCAP2; -pub use linux_headers_linux_auxvec::AT_HWCAP3; -pub use linux_headers_linux_auxvec::AT_HWCAP4; -mod linux_headers_linux_prctl; -pub use linux_headers_linux_prctl::PR_GET_AUXV; +mod linux_headers_asm_hwcap; +mod linux_headers_asm_hwprobe; +pub use linux_headers_asm_hwprobe::riscv_hwprobe; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MVENDORID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MARCHID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MIMPID; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_BASE_BEHAVIOR; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_BASE_BEHAVIOR_IMA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_IMA_EXT_0; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_FD; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_C; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_V; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICBOZ; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKX; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKND; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKT; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBC; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKG; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKT; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFHMIN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTNTL; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFH; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFHMIN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZTSO; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZACAS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICOND; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTPAUSE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32X; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32F; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64X; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64F; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64D; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIMOP; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCA; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCB; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCD; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCF; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCMOP; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZAWRS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_CPUPERF_0; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNKNOWN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_EMULATED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SLOW; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_FAST; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNSUPPORTED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_MASK; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_HIGHEST_VIRT_ADDRESS; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_TIME_CSR_FREQ; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MISALIGNED_SCALAR_PERF; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNKNOWN; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_EMULATED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_SLOW; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_FAST; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNSUPPORTED; +pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_WHICH_CPUS; mod linux_headers_asm_unistd; pub use linux_headers_asm_unistd::__NR_io_setup; pub use linux_headers_asm_unistd::__NR_io_destroy; @@ -331,83 +399,238 @@ pub use linux_headers_asm_unistd::__NR_lsm_get_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_set_self_attr; pub use linux_headers_asm_unistd::__NR_lsm_list_modules; pub use linux_headers_asm_unistd::__NR_mseal; -mod linux_headers_asm_hwprobe; -pub use linux_headers_asm_hwprobe::riscv_hwprobe; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MVENDORID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MARCHID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MIMPID; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_BASE_BEHAVIOR; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_BASE_BEHAVIOR_IMA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_IMA_EXT_0; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_FD; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_C; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_IMA_V; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICBOZ; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZBKX; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKND; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKNH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKSH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZKT; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVBC; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKG; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKNHB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKSH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVKT; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFHMIN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTNTL; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFH; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVFHMIN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZFA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZTSO; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZACAS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZICOND; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIHINTPAUSE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32X; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE32F; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64X; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64F; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZVE64D; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZIMOP; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCA; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCB; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCD; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCF; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZCMOP; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_EXT_ZAWRS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_CPUPERF_0; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNKNOWN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_EMULATED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SLOW; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_FAST; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_UNSUPPORTED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_MASK; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_HIGHEST_VIRT_ADDRESS; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_TIME_CSR_FREQ; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_KEY_MISALIGNED_SCALAR_PERF; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNKNOWN; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_EMULATED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_SLOW; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_FAST; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_MISALIGNED_SCALAR_UNSUPPORTED; -pub use linux_headers_asm_hwprobe::RISCV_HWPROBE_WHICH_CPUS; -mod sys_auxv; -pub use sys_auxv::getauxval; +mod linux_headers_linux_auxvec; +pub use linux_headers_linux_auxvec::AT_SYSINFO_EHDR; +pub use linux_headers_linux_auxvec::AT_L1I_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1I_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L1D_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L1D_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L2_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L2_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_L3_CACHESIZE; +pub use linux_headers_linux_auxvec::AT_L3_CACHEGEOMETRY; +pub use linux_headers_linux_auxvec::AT_VECTOR_SIZE_ARCH; +pub use linux_headers_linux_auxvec::AT_MINSIGSTKSZ; +pub use linux_headers_linux_auxvec::AT_NULL; +pub use linux_headers_linux_auxvec::AT_IGNORE; +pub use linux_headers_linux_auxvec::AT_EXECFD; +pub use linux_headers_linux_auxvec::AT_PHDR; +pub use linux_headers_linux_auxvec::AT_PHENT; +pub use linux_headers_linux_auxvec::AT_PHNUM; +pub use linux_headers_linux_auxvec::AT_PAGESZ; +pub use linux_headers_linux_auxvec::AT_BASE; +pub use linux_headers_linux_auxvec::AT_FLAGS; +pub use linux_headers_linux_auxvec::AT_ENTRY; +pub use linux_headers_linux_auxvec::AT_NOTELF; +pub use linux_headers_linux_auxvec::AT_UID; +pub use linux_headers_linux_auxvec::AT_EUID; +pub use linux_headers_linux_auxvec::AT_GID; +pub use linux_headers_linux_auxvec::AT_EGID; +pub use linux_headers_linux_auxvec::AT_PLATFORM; +pub use linux_headers_linux_auxvec::AT_HWCAP; +pub use linux_headers_linux_auxvec::AT_CLKTCK; +pub use linux_headers_linux_auxvec::AT_SECURE; +pub use linux_headers_linux_auxvec::AT_BASE_PLATFORM; +pub use linux_headers_linux_auxvec::AT_RANDOM; +pub use linux_headers_linux_auxvec::AT_HWCAP2; +pub use linux_headers_linux_auxvec::AT_RSEQ_FEATURE_SIZE; +pub use linux_headers_linux_auxvec::AT_RSEQ_ALIGN; +pub use linux_headers_linux_auxvec::AT_HWCAP3; +pub use linux_headers_linux_auxvec::AT_HWCAP4; +pub use linux_headers_linux_auxvec::AT_EXECFN; +mod linux_headers_linux_prctl; +pub use linux_headers_linux_prctl::PR_SET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_PDEATHSIG; +pub use linux_headers_linux_prctl::PR_GET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_SET_DUMPABLE; +pub use linux_headers_linux_prctl::PR_GET_UNALIGN; +pub use linux_headers_linux_prctl::PR_SET_UNALIGN; +pub use linux_headers_linux_prctl::PR_UNALIGN_NOPRINT; +pub use linux_headers_linux_prctl::PR_UNALIGN_SIGBUS; +pub use linux_headers_linux_prctl::PR_GET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_SET_KEEPCAPS; +pub use linux_headers_linux_prctl::PR_GET_FPEMU; +pub use linux_headers_linux_prctl::PR_SET_FPEMU; +pub use linux_headers_linux_prctl::PR_FPEMU_NOPRINT; +pub use linux_headers_linux_prctl::PR_FPEMU_SIGFPE; +pub use linux_headers_linux_prctl::PR_GET_FPEXC; +pub use linux_headers_linux_prctl::PR_SET_FPEXC; +pub use linux_headers_linux_prctl::PR_FP_EXC_SW_ENABLE; +pub use linux_headers_linux_prctl::PR_FP_EXC_DIV; +pub use linux_headers_linux_prctl::PR_FP_EXC_OVF; +pub use linux_headers_linux_prctl::PR_FP_EXC_UND; +pub use linux_headers_linux_prctl::PR_FP_EXC_RES; +pub use linux_headers_linux_prctl::PR_FP_EXC_INV; +pub use linux_headers_linux_prctl::PR_FP_EXC_DISABLED; +pub use linux_headers_linux_prctl::PR_FP_EXC_NONRECOV; +pub use linux_headers_linux_prctl::PR_FP_EXC_ASYNC; +pub use linux_headers_linux_prctl::PR_FP_EXC_PRECISE; +pub use linux_headers_linux_prctl::PR_GET_TIMING; +pub use linux_headers_linux_prctl::PR_SET_TIMING; +pub use linux_headers_linux_prctl::PR_TIMING_STATISTICAL; +pub use linux_headers_linux_prctl::PR_TIMING_TIMESTAMP; +pub use linux_headers_linux_prctl::PR_SET_NAME; +pub use linux_headers_linux_prctl::PR_GET_NAME; +pub use linux_headers_linux_prctl::PR_GET_ENDIAN; +pub use linux_headers_linux_prctl::PR_SET_ENDIAN; +pub use linux_headers_linux_prctl::PR_ENDIAN_BIG; +pub use linux_headers_linux_prctl::PR_ENDIAN_LITTLE; +pub use linux_headers_linux_prctl::PR_ENDIAN_PPC_LITTLE; +pub use linux_headers_linux_prctl::PR_GET_SECCOMP; +pub use linux_headers_linux_prctl::PR_SET_SECCOMP; +pub use linux_headers_linux_prctl::PR_CAPBSET_READ; +pub use linux_headers_linux_prctl::PR_CAPBSET_DROP; +pub use linux_headers_linux_prctl::PR_GET_TSC; +pub use linux_headers_linux_prctl::PR_SET_TSC; +pub use linux_headers_linux_prctl::PR_TSC_ENABLE; +pub use linux_headers_linux_prctl::PR_TSC_SIGSEGV; +pub use linux_headers_linux_prctl::PR_GET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_SECUREBITS; +pub use linux_headers_linux_prctl::PR_SET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_GET_TIMERSLACK; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_DISABLE; +pub use linux_headers_linux_prctl::PR_TASK_PERF_EVENTS_ENABLE; +pub use linux_headers_linux_prctl::PR_MCE_KILL; +pub use linux_headers_linux_prctl::PR_MCE_KILL_CLEAR; +pub use linux_headers_linux_prctl::PR_MCE_KILL_SET; +pub use linux_headers_linux_prctl::PR_MCE_KILL_LATE; +pub use linux_headers_linux_prctl::PR_MCE_KILL_EARLY; +pub use linux_headers_linux_prctl::PR_MCE_KILL_DEFAULT; +pub use linux_headers_linux_prctl::PR_MCE_KILL_GET; +pub use linux_headers_linux_prctl::PR_SET_MM; +pub use linux_headers_linux_prctl::PR_SET_MM_START_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_END_CODE; +pub use linux_headers_linux_prctl::PR_SET_MM_START_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_END_DATA; +pub use linux_headers_linux_prctl::PR_SET_MM_START_STACK; +pub use linux_headers_linux_prctl::PR_SET_MM_START_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_BRK; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ARG_END; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_START; +pub use linux_headers_linux_prctl::PR_SET_MM_ENV_END; +pub use linux_headers_linux_prctl::PR_SET_MM_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MM_EXE_FILE; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP; +pub use linux_headers_linux_prctl::PR_SET_MM_MAP_SIZE; +pub use linux_headers_linux_prctl::PR_SET_PTRACER; +pub use linux_headers_linux_prctl::PR_SET_PTRACER_ANY; +pub use linux_headers_linux_prctl::PR_SET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_GET_CHILD_SUBREAPER; +pub use linux_headers_linux_prctl::PR_SET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_NO_NEW_PRIVS; +pub use linux_headers_linux_prctl::PR_GET_TID_ADDRESS; +pub use linux_headers_linux_prctl::PR_SET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_GET_THP_DISABLE; +pub use linux_headers_linux_prctl::PR_MPX_ENABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_MPX_DISABLE_MANAGEMENT; +pub use linux_headers_linux_prctl::PR_SET_FP_MODE; +pub use linux_headers_linux_prctl::PR_GET_FP_MODE; +pub use linux_headers_linux_prctl::PR_FP_MODE_FR; +pub use linux_headers_linux_prctl::PR_FP_MODE_FRE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_IS_SET; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_RAISE; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_LOWER; +pub use linux_headers_linux_prctl::PR_CAP_AMBIENT_CLEAR_ALL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL; +pub use linux_headers_linux_prctl::PR_SVE_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SVE_GET_VL; +pub use linux_headers_linux_prctl::PR_SVE_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SVE_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SET_SPECULATION_CTRL; +pub use linux_headers_linux_prctl::PR_SPEC_STORE_BYPASS; +pub use linux_headers_linux_prctl::PR_SPEC_INDIRECT_BRANCH; +pub use linux_headers_linux_prctl::PR_SPEC_L1D_FLUSH; +pub use linux_headers_linux_prctl::PR_SPEC_NOT_AFFECTED; +pub use linux_headers_linux_prctl::PR_SPEC_PRCTL; +pub use linux_headers_linux_prctl::PR_SPEC_ENABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_FORCE_DISABLE; +pub use linux_headers_linux_prctl::PR_SPEC_DISABLE_NOEXEC; +pub use linux_headers_linux_prctl::PR_PAC_RESET_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_APIAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APIBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDAKEY; +pub use linux_headers_linux_prctl::PR_PAC_APDBKEY; +pub use linux_headers_linux_prctl::PR_PAC_APGAKEY; +pub use linux_headers_linux_prctl::PR_SET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_GET_TAGGED_ADDR_CTRL; +pub use linux_headers_linux_prctl::PR_TAGGED_ADDR_ENABLE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_NONE; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_ASYNC; +pub use linux_headers_linux_prctl::PR_MTE_TCF_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TAG_SHIFT; +pub use linux_headers_linux_prctl::PR_MTE_TAG_MASK; +pub use linux_headers_linux_prctl::PR_MTE_TCF_SHIFT; +pub use linux_headers_linux_prctl::PR_SET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_GET_IO_FLUSHER; +pub use linux_headers_linux_prctl::PR_SET_SYSCALL_USER_DISPATCH; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_OFF; +pub use linux_headers_linux_prctl::PR_SYS_DISPATCH_ON; +pub use linux_headers_linux_prctl::PR_PAC_SET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_PAC_GET_ENABLED_KEYS; +pub use linux_headers_linux_prctl::PR_SCHED_CORE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_GET; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_CREATE; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_TO; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SHARE_FROM; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_MAX; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_THREAD_GROUP; +pub use linux_headers_linux_prctl::PR_SCHED_CORE_SCOPE_PROCESS_GROUP; +pub use linux_headers_linux_prctl::PR_SME_SET_VL; +pub use linux_headers_linux_prctl::PR_SME_SET_VL_ONEXEC; +pub use linux_headers_linux_prctl::PR_SME_GET_VL; +pub use linux_headers_linux_prctl::PR_SME_VL_LEN_MASK; +pub use linux_headers_linux_prctl::PR_SME_VL_INHERIT; +pub use linux_headers_linux_prctl::PR_SET_MDWE; +pub use linux_headers_linux_prctl::PR_MDWE_REFUSE_EXEC_GAIN; +pub use linux_headers_linux_prctl::PR_MDWE_NO_INHERIT; +pub use linux_headers_linux_prctl::PR_GET_MDWE; +pub use linux_headers_linux_prctl::PR_SET_VMA; +pub use linux_headers_linux_prctl::PR_SET_VMA_ANON_NAME; +pub use linux_headers_linux_prctl::PR_GET_AUXV; +pub use linux_headers_linux_prctl::PR_SET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_GET_MEMORY_MERGE; +pub use linux_headers_linux_prctl::PR_RISCV_V_SET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_GET_CONTROL; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_DEFAULT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_ON; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_INHERIT; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_CUR_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_NEXT_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_V_VSTATE_CTRL_MASK; +pub use linux_headers_linux_prctl::PR_RISCV_SET_ICACHE_FLUSH_CTX; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_ON; +pub use linux_headers_linux_prctl::PR_RISCV_CTX_SW_FENCEI_OFF; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_PROCESS; +pub use linux_headers_linux_prctl::PR_RISCV_SCOPE_PER_THREAD; +pub use linux_headers_linux_prctl::PR_PPC_GET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_SET_DEXCR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SBHE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_IBRTPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_SRAPD; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_NPHIE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_EDITABLE; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_SET_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_CLEAR_ONEXEC; +pub use linux_headers_linux_prctl::PR_PPC_DEXCR_CTRL_MASK; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod elf; pub use elf::Elf32_auxv_t; pub use elf::Elf64_auxv_t; +mod sys_auxv; +pub use sys_auxv::getauxval; +mod sys_prctl; +pub use sys_prctl::prctl; +mod unistd; +pub use unistd::syscall; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_musl/sys_auxv.rs b/tests/helper/src/gen/sys/riscv64gc_linux_musl/sys_auxv.rs index b6d1eb82..fc602aeb 100644 --- a/tests/helper/src/gen/sys/riscv64gc_linux_musl/sys_auxv.rs +++ b/tests/helper/src/gen/sys/riscv64gc_linux_musl/sys_auxv.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + extern "C" { pub fn getauxval(arg1: ::std::os::raw::c_ulong) -> ::std::os::raw::c_ulong; } diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_musl/sys_prctl.rs b/tests/helper/src/gen/sys/riscv64gc_linux_musl/sys_prctl.rs new file mode 100644 index 00000000..89f0295b --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64gc_linux_musl/sys_prctl.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn prctl(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; +} diff --git a/tests/helper/src/gen/sys/riscv64gc_linux_musl/unistd.rs b/tests/helper/src/gen/sys/riscv64gc_linux_musl/unistd.rs new file mode 100644 index 00000000..d16be956 --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64gc_linux_musl/unistd.rs @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +extern "C" { + pub fn syscall(arg1: ::std::os::raw::c_long, ...) -> ::std::os::raw::c_long; +} diff --git a/tests/helper/src/gen/sys/riscv64gc_openbsd/dlfcn.rs b/tests/helper/src/gen/sys/riscv64gc_openbsd/dlfcn.rs new file mode 100644 index 00000000..e7bac10c --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64gc_openbsd/dlfcn.rs @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const RTLD_DEFAULT: *mut ::std::os::raw::c_void = -2i8 + as *mut ::std::os::raw::c_void; +extern "C" { + pub fn dlsym( + arg1: *mut ::core::ffi::c_void, + arg2: *const ::std::os::raw::c_char, + ) -> *mut ::core::ffi::c_void; +} diff --git a/tests/helper/src/gen/sys/riscv64gc_openbsd/machine_cpu.rs b/tests/helper/src/gen/sys/riscv64gc_openbsd/machine_cpu.rs new file mode 100644 index 00000000..8e49ea1f --- /dev/null +++ b/tests/helper/src/gen/sys/riscv64gc_openbsd/machine_cpu.rs @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: Apache-2.0 OR MIT +// This file is @generated by portable-atomic-internal-codegen +// (gen function at tools/codegen/src/ffi.rs). +// It is not intended for manual editing. + +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const CPU_COMPATIBLE: u32 = 1; +pub const CPU_MAXID: u32 = 2; diff --git a/tests/helper/src/gen/sys/riscv64gc_openbsd/mod.rs b/tests/helper/src/gen/sys/riscv64gc_openbsd/mod.rs index 5ef068eb..5b54970a 100644 --- a/tests/helper/src/gen/sys/riscv64gc_openbsd/mod.rs +++ b/tests/helper/src/gen/sys/riscv64gc_openbsd/mod.rs @@ -4,11 +4,21 @@ // It is not intended for manual editing. #![cfg_attr(rustfmt, rustfmt::skip)] -mod sys_sysctl; -pub use sys_sysctl::CTL_MACHDEP; -pub use sys_sysctl::sysctl; +mod dlfcn; +pub use dlfcn::RTLD_DEFAULT; +pub use dlfcn::dlsym; mod sys_auxv; +pub use sys_auxv::AT_NULL; +pub use sys_auxv::AT_IGNORE; +pub use sys_auxv::AT_PAGESZ; pub use sys_auxv::AT_HWCAP; pub use sys_auxv::AT_HWCAP2; +pub use sys_auxv::AT_COUNT; pub use sys_auxv::elf_aux_info; +mod sys_sysctl; +pub use sys_sysctl::CTL_MACHDEP; +pub use sys_sysctl::sysctl; +mod machine_cpu; +pub use machine_cpu::CPU_COMPATIBLE; +pub use machine_cpu::CPU_MAXID; pub type c_char = u8; diff --git a/tests/helper/src/gen/sys/riscv64gc_openbsd/sys_auxv.rs b/tests/helper/src/gen/sys/riscv64gc_openbsd/sys_auxv.rs index edb66f8b..b2dc7e1e 100644 --- a/tests/helper/src/gen/sys/riscv64gc_openbsd/sys_auxv.rs +++ b/tests/helper/src/gen/sys/riscv64gc_openbsd/sys_auxv.rs @@ -3,8 +3,14 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + +pub const AT_NULL: u32 = 0; +pub const AT_IGNORE: u32 = 1; +pub const AT_PAGESZ: u32 = 6; pub const AT_HWCAP: u32 = 25; pub const AT_HWCAP2: u32 = 26; +pub const AT_COUNT: u32 = 27; extern "C" { pub fn elf_aux_info( aux: ::std::os::raw::c_int, diff --git a/tests/helper/src/gen/sys/riscv64gc_openbsd/sys_sysctl.rs b/tests/helper/src/gen/sys/riscv64gc_openbsd/sys_sysctl.rs index 1cbc15c8..23078453 100644 --- a/tests/helper/src/gen/sys/riscv64gc_openbsd/sys_sysctl.rs +++ b/tests/helper/src/gen/sys/riscv64gc_openbsd/sys_sysctl.rs @@ -3,6 +3,8 @@ // (gen function at tools/codegen/src/ffi.rs). // It is not intended for manual editing. +#![cfg_attr(rustfmt, rustfmt::skip)] + pub type u_int = ::std::os::raw::c_uint; pub const CTL_MACHDEP: u32 = 7; extern "C" { diff --git a/tools/codegen/Cargo.toml b/tools/codegen/Cargo.toml index b1b1e4c8..563f2f6a 100644 --- a/tools/codegen/Cargo.toml +++ b/tools/codegen/Cargo.toml @@ -5,7 +5,6 @@ edition = "2018" publish = false [dependencies] -anyhow = "1" bindgen = { default-features = false, features = ["prettyplease", "runtime"], git = "https://github.com/taiki-e/rust-bindgen.git", branch = "dev" } # https://github.com/rust-lang/rust-bindgen/pull/2369 + avoid https://github.com/rust-lang/cargo/issues/10623 + avoid bug on generate c str option camino = "1" duct = "0.13" diff --git a/tools/codegen/patches/linux-gnu.diff b/tools/codegen/patches/linux-gnu.diff deleted file mode 100644 index a5125ec7..00000000 --- a/tools/codegen/patches/linux-gnu.diff +++ /dev/null @@ -1,47 +0,0 @@ -diff --git a/bminor/glibc/include/features-time64.h b/bminor/glibc/include/features-time64.h -index 06115b7c..1c7370dc 100644 ---- a/bminor/glibc/include/features-time64.h -+++ b/bminor/glibc/include/features-time64.h -@@ -1 +1 @@ --#include_next -+// #include_next -diff --git a/bminor/glibc/include/sys/auxv.h b/bminor/glibc/include/sys/auxv.h -index dd0602b0..6d083f4b 100644 ---- a/bminor/glibc/include/sys/auxv.h -+++ b/bminor/glibc/include/sys/auxv.h -@@ -3,11 +3,11 @@ - #ifndef _ISOMAC - - extern __typeof (getauxval) __getauxval; --libc_hidden_proto (__getauxval) -+// libc_hidden_proto (__getauxval) - - /* Like getauxval, but writes the value to *RESULT and returns true if - found, or returns false. Does not set errno. */ --_Bool __getauxval2 (unsigned long int type, unsigned long int *result); --libc_hidden_proto (__getauxval2) -+// _Bool __getauxval2 (unsigned long int type, unsigned long int *result); -+// libc_hidden_proto (__getauxval2) - - #endif /* !_ISOMAC */ -diff --git a/bminor/glibc/include/sys/cdefs.h b/bminor/glibc/include/sys/cdefs.h -index b84ad34a..8f6ef552 100644 ---- a/bminor/glibc/include/sys/cdefs.h -+++ b/bminor/glibc/include/sys/cdefs.h -@@ -17,13 +17,13 @@ - # define __nonnull(params) - - extern void __chk_fail (void) __attribute__ ((__noreturn__)); --libc_hidden_proto (__chk_fail) --rtld_hidden_proto (__chk_fail) -+// libc_hidden_proto (__chk_fail) -+// rtld_hidden_proto (__chk_fail) - - /* If we are using redirects internally to support long double, - we need to tweak some macros to ensure the PLT bypass tricks - continue to work in libc. */ --#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && IS_IN (libc) && defined SHARED -+#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 && false && defined SHARED - - # undef __LDBL_REDIR_DECL - # define __LDBL_REDIR_DECL(func) \ diff --git a/tools/codegen/src/ffi.rs b/tools/codegen/src/ffi.rs index a6a14bfc..7e1f9a44 100644 --- a/tools/codegen/src/ffi.rs +++ b/tools/codegen/src/ffi.rs @@ -10,9 +10,8 @@ // // See also https://github.com/rust-lang/libc/issues/570. -use std::{ffi::OsStr, process::Command}; +use std::process::Command; -use anyhow::{Context as _, Result}; use camino::{Utf8Path, Utf8PathBuf}; use duct::cmd; use fs::os::unix::fs::symlink; @@ -23,6 +22,7 @@ use target_spec_json::{ Arch::{self, *}, Env::{self, *}, Os::{self, *}, + TargetEndian::*, TargetSpec, }; @@ -32,41 +32,57 @@ use crate::file::{self, workspace_root}; static TARGETS: &[Target] = &[ Target { triples: &[ + // Linux (glibc) "aarch64-unknown-linux-gnu", "aarch64_be-unknown-linux-gnu", "aarch64-unknown-linux-gnu_ilp32", "aarch64_be-unknown-linux-gnu_ilp32", - "aarch64-unknown-linux-musl", - "aarch64-unknown-linux-uclibc", - "aarch64-linux-android", "powerpc64-unknown-linux-gnu", "powerpc64le-unknown-linux-gnu", + "riscv32gc-unknown-linux-gnu", + "riscv64gc-unknown-linux-gnu", + // Linux (musl) + "aarch64-unknown-linux-musl", "powerpc64-unknown-linux-musl", "powerpc64le-unknown-linux-musl", - "riscv32gc-unknown-linux-gnu", "riscv32gc-unknown-linux-musl", - "riscv64gc-unknown-linux-gnu", "riscv64gc-unknown-linux-musl", + // Linux (uClibc-ng) + "aarch64-unknown-linux-uclibc", + // Android + "aarch64-linux-android", "riscv64-linux-android", ], headers: &[ Header { - // https://github.com/torvalds/linux/blob/HEAD/include/uapi/linux/auxvec.h - path: "linux-headers:linux/auxvec.h", + // https://github.com/torvalds/linux/blob/HEAD/arch/powerpc/include/uapi/asm/cputable.h + path: "linux-headers:asm/cputable.h", types: &[], - vars: &["AT_HWCAP.*"], + vars: &["PPC_FEATURE.*"], functions: &[], - arch: &[], + arch: &[powerpc64], os: &[], env: &[], }, Header { - // https://github.com/torvalds/linux/blob/HEAD/include/uapi/linux/prctl.h - path: "linux-headers:linux/prctl.h", + // https://github.com/torvalds/linux/blob/HEAD/arch/arm64/include/uapi/asm/hwcap.h + // https://github.com/torvalds/linux/blob/HEAD/arch/riscv/include/uapi/asm/hwcap.h + path: "linux-headers:asm/hwcap.h", types: &[], - vars: &["PR_GET_AUXV"], + // TODO: COMPAT_HWCAP.* for riscv + vars: &["HWCAP.*"], functions: &[], - arch: &[], + arch: &[aarch64, riscv32, riscv64], + os: &[], + env: &[], + }, + Header { + // https://github.com/torvalds/linux/blob/HEAD/arch/riscv/include/uapi/asm/hwprobe.h + path: "linux-headers:asm/hwprobe.h", + types: &["riscv_hwprobe"], + vars: &["RISCV_HWPROBE_.*"], + functions: &[], + arch: &[riscv32, riscv64], os: &[], env: &[], }, @@ -80,32 +96,48 @@ static TARGETS: &[Target] = &[ env: &[], }, Header { - // https://github.com/torvalds/linux/blob/HEAD/arch/arm64/include/uapi/asm/hwcap.h - path: "linux-headers:asm/hwcap.h", + // https://github.com/torvalds/linux/blob/HEAD/include/uapi/linux/auxvec.h + path: "linux-headers:linux/auxvec.h", types: &[], - vars: &["HWCAP.*"], + vars: &["AT_.*"], functions: &[], - arch: &[aarch64], + arch: &[], os: &[], env: &[], }, Header { - // https://github.com/torvalds/linux/blob/HEAD/arch/powerpc/include/uapi/asm/cputable.h - path: "linux-headers:asm/cputable.h", + // https://github.com/torvalds/linux/blob/HEAD/include/uapi/linux/prctl.h + path: "linux-headers:linux/prctl.h", types: &[], - vars: &["PPC_FEATURE.*"], + vars: &["PR_.*"], functions: &[], - arch: &[powerpc64], + arch: &[], os: &[], env: &[], }, Header { - // https://github.com/torvalds/linux/blob/HEAD/arch/riscv/include/uapi/asm/hwprobe.h - path: "linux-headers:asm/hwprobe.h", - types: &["riscv_hwprobe"], - vars: &["RISCV_HWPROBE_.*"], + // https://github.com/bminor/glibc/blob/HEAD/dlfcn/dlfcn.h + // https://github.com/bminor/musl/blob/HEAD/include/dlfcn.h + // https://github.com/wbx-github/uclibc-ng/blob/HEAD/include/dlfcn.h + // https://github.com/aosp-mirror/platform_bionic/blob/HEAD/libc/include/dlfcn.h + path: "dlfcn.h", + types: &[], + vars: &["RTLD_DEFAULT"], + functions: &["dlsym"], + arch: &[], + os: &[], + env: &[], + }, + Header { + // https://github.com/bminor/glibc/blob/HEAD/elf/elf.h + // https://github.com/bminor/musl/blob/HEAD/include/elf.h + // https://github.com/wbx-github/uclibc-ng/blob/HEAD/include/elf.h + // https://github.com/aosp-mirror/platform_bionic/blob/HEAD/libc/include/elf.h + path: "elf.h", + types: &["Elf.*_auxv_t"], + vars: &[], functions: &[], - arch: &[riscv32, riscv64], + arch: &[], os: &[], env: &[], }, @@ -122,6 +154,29 @@ static TARGETS: &[Target] = &[ os: &[], env: &[], }, + Header { + // https://github.com/bminor/glibc/blob/HEAD/sysdeps/unix/sysv/linux/riscv/sys/hwprobe.h + path: "sys/hwprobe.h", + types: &[], + vars: &[], + functions: &["__riscv_hwprobe"], + arch: &[riscv32, riscv64], + os: &[linux], + env: &[gnu], + }, + Header { + // https://github.com/bminor/glibc/blob/HEAD/include/sys/prctl.h + // https://github.com/bminor/musl/blob/HEAD/include/sys/prctl.h + // https://github.com/wbx-github/uclibc-ng/blob/HEAD/libc/sysdeps/linux/common/sys/prctl.h + // https://github.com/aosp-mirror/platform_bionic/blob/HEAD/libc/include/sys/prctl.h + path: "sys/prctl.h", + types: &[], + vars: &[], + functions: &["prctl"], + arch: &[], + os: &[], + env: &[], + }, Header { // https://github.com/aosp-mirror/platform_bionic/blob/HEAD/libc/include/sys/system_properties.h path: "sys/system_properties.h", @@ -133,14 +188,10 @@ static TARGETS: &[Target] = &[ env: &[], }, Header { - // https://github.com/bminor/glibc/blob/HEAD/elf/elf.h - // https://github.com/bminor/musl/blob/HEAD/include/elf.h - // https://github.com/wbx-github/uclibc-ng/blob/HEAD/include/elf.h - // https://github.com/aosp-mirror/platform_bionic/blob/HEAD/libc/include/elf.h - path: "elf.h", - types: &["Elf32_auxv_t", "Elf64_auxv_t"], + path: "unistd.h", + types: &[], vars: &[], - functions: &[], + functions: &["syscall"], arch: &[], os: &[], env: &[], @@ -161,7 +212,7 @@ static TARGETS: &[Target] = &[ // https://github.com/apple-oss-distributions/xnu/blob/HEAD/bsd/sys/sysctl.h path: "sys/sysctl.h", types: &[], - vars: &[], + vars: &["CTL_MAXNAME"], functions: &["sysctlbyname"], arch: &[], os: &[], @@ -177,6 +228,16 @@ static TARGETS: &[Target] = &[ "riscv64gc-unknown-freebsd", ], headers: &[ + Header { + // https://github.com/freebsd/freebsd-src/blob/HEAD/include/dlfcn.h + path: "dlfcn.h", + types: &[], + vars: &["RTLD_DEFAULT"], + functions: &["dlsym"], + arch: &[], + os: &[], + env: &[], + }, Header { // https://github.com/freebsd/freebsd-src/blob/HEAD/sys/sys/auxv.h path: "sys/auxv.h", @@ -211,7 +272,7 @@ static TARGETS: &[Target] = &[ // https://github.com/freebsd/freebsd-src/blob/HEAD/sys/sys/elf_common.h path: "sys/elf_common.h", types: &[], - vars: &["AT_HWCAP.*", "AT_COUNT"], + vars: &["AT_.*"], functions: &[], arch: &[], os: &[], @@ -228,32 +289,25 @@ static TARGETS: &[Target] = &[ env: &[], }, Header { - // https://github.com/freebsd/freebsd-src/blob/HEAD/sys/arm64/include/elf.h - path: "machine/elf.h", - types: &["Elf64_Auxinfo"], - vars: &["HWCAP.*"], + // https://github.com/freebsd/freebsd-src/blob/HEAD/sys/powerpc/include/cpu.h + path: "machine/cpu.h", + types: &[], + vars: &["PPC_FEATURE.*"], functions: &[], - arch: &[aarch64], + arch: &[powerpc64], os: &[], env: &[], }, Header { + // https://github.com/freebsd/freebsd-src/blob/HEAD/sys/arm64/include/elf.h // https://github.com/freebsd/freebsd-src/blob/HEAD/sys/powerpc/include/elf.h + // https://github.com/freebsd/freebsd-src/blob/HEAD/sys/riscv/include/elf.h path: "machine/elf.h", - types: &["Elf64_Auxinfo"], - vars: &[], - functions: &[], - arch: &[powerpc64], - os: &[], - env: &[], - }, - Header { - // https://github.com/freebsd/freebsd-src/blob/HEAD/sys/powerpc/include/cpu.h - path: "machine/cpu.h", - types: &[], - vars: &["PPC_FEATURE.*"], + types: &["Elf.*_Auxinfo"], + vars: &["HWCAP.*"], functions: &[], - arch: &[powerpc64], + // TODO: riscv + arch: &[aarch64, powerpc64], os: &[], env: &[], }, @@ -266,16 +320,6 @@ static TARGETS: &[Target] = &[ // "riscv64gc-unknown-netbsd", ], headers: &[ - Header { - // https://github.com/NetBSD/src/blob/HEAD/sys/sys/sysctl.h - path: "sys/sysctl.h", - types: &["sysctlnode"], - vars: &["CTL_QUERY", "SYSCTL_VERS_1"], - functions: &["sysctl", "sysctlbyname"], - arch: &[], - os: &[], - env: &[], - }, Header { // https://github.com/NetBSD/src/blob/HEAD/sys/sys/syscall.h path: "sys/syscall.h", @@ -286,9 +330,19 @@ static TARGETS: &[Target] = &[ os: &[], env: &[], }, + Header { + // https://github.com/NetBSD/src/blob/HEAD/sys/sys/sysctl.h + path: "sys/sysctl.h", + types: &["sysctlnode"], + vars: &["CTL_QUERY", "SYSCTL_VERS_1", "SYSCTL_VERSION"], + functions: &["sysctlbyname"], + arch: &[], + os: &[], + env: &[], + }, Header { // https://github.com/NetBSD/src/blob/HEAD/sys/arch/aarch64/include/armreg.h - path: "aarch64/armreg.h", + path: "machine/armreg.h", types: &["aarch64_sysctl_cpu_id"], vars: &[], functions: &[], @@ -306,11 +360,11 @@ static TARGETS: &[Target] = &[ ], headers: &[ Header { - // https://github.com/openbsd/src/blob/HEAD/sys/sys/sysctl.h - path: "sys/sysctl.h", + // https://github.com/openbsd/src/blob/HEAD/include/dlfcn.h + path: "dlfcn.h", types: &[], - vars: &["CTL_MACHDEP"], - functions: &["sysctl"], + vars: &["RTLD_DEFAULT"], + functions: &["dlsym"], arch: &[], os: &[], env: &[], @@ -319,39 +373,44 @@ static TARGETS: &[Target] = &[ // https://github.com/openbsd/src/blob/HEAD/sys/sys/auxv.h path: "sys/auxv.h", types: &[], - vars: &["AT_HWCAP.*"], + vars: &["AT_.*"], functions: &["elf_aux_info"], arch: &[], os: &[], env: &[], }, Header { - // https://github.com/openbsd/src/blob/HEAD/sys/arch/arm64/include/cpu.h - path: "machine/cpu.h", + // https://github.com/openbsd/src/blob/HEAD/sys/sys/sysctl.h + path: "sys/sysctl.h", types: &[], - vars: &["CPU_ID_.*"], - functions: &[], - arch: &[aarch64], + vars: &["CTL_MACHDEP"], + functions: &["sysctl"], + arch: &[], os: &[], env: &[], }, Header { - // https://github.com/openbsd/src/blob/HEAD/sys/arch/arm64/include/elf.h - path: "machine/elf.h", + // https://github.com/openbsd/src/blob/HEAD/sys/arch/arm64/include/cpu.h + // https://github.com/openbsd/src/blob/HEAD/sys/arch/powerpc64/include/cpu.h + // https://github.com/openbsd/src/blob/HEAD/sys/arch/riscv64/include/cpu.h + path: "machine/cpu.h", types: &[], - vars: &["HWCAP.*"], + vars: &["CPU_.*"], functions: &[], - arch: &[aarch64], + arch: &[], os: &[], env: &[], }, Header { - // https://github.com/openbsd/src/blob/HEAD/sys/arch/powerpc/include/elf.h + // https://github.com/openbsd/src/blob/HEAD/sys/arch/arm64/include/elf.h + // https://github.com/openbsd/src/blob/HEAD/sys/arch/powerpc64/include/elf.h + // https://github.com/openbsd/src/blob/HEAD/sys/arch/riscv64/include/elf.h path: "machine/elf.h", types: &[], - vars: &["PPC_FEATURE.*"], + vars: &["HWCAP.*", "PPC_FEATURE.*"], functions: &[], - arch: &[powerpc64], + // TODO: riscv + arch: &[aarch64, powerpc64], os: &[], env: &[], }, @@ -385,6 +444,11 @@ static TARGETS: &[Target] = &[ }, ], }, + Target { + triples: &["powerpc64-ibm-aix"], + // TODO: There is no way to access to AIX headers. + headers: &[], + }, Target { triples: &[ "aarch64-unknown-fuchsia", @@ -445,20 +509,27 @@ struct Header { env: &'static [Env], } -pub(crate) fn gen() -> Result<()> { +pub(crate) fn gen() { + if !cfg!(all(target_os = "linux", target_arch = "x86_64")) { + eprintln!("warning: codegen is only fully supported on x86_64 Linux"); + // TODO + return; + } let workspace_root = &workspace_root(); let download_dir = &workspace_root.join("tools/codegen/tmp/cache"); - fs::create_dir_all(download_dir)?; + fs::create_dir_all(download_dir).unwrap(); let out_dir = &workspace_root.join("tests/helper/src/gen/sys"); - fs::remove_dir_all(out_dir)?; + if out_dir.exists() { + fs::remove_dir_all(out_dir).unwrap(); + } let raw_line = file::header(function_name!()); - let raw_line = raw_line.strip_suffix("\n\n#![cfg_attr(rustfmt, rustfmt::skip)]\n").unwrap(); + let raw_line = raw_line.trim_end(); let mut target_modules = vec![]; for &Target { triples, headers } in TARGETS { for &triple in triples { eprintln!("\ninfo: generating bindings for {triple}"); - let target = &target_spec_json(triple)?; + let target = &target_spec_json(triple); let module_name = triple.replace("-unknown", "").replace(['-', '.'], "_"); let out_dir = &out_dir.join(&module_name); { @@ -483,211 +554,239 @@ pub(crate) fn gen() -> Result<()> { pub use #module_name::*; }); } - fs::create_dir_all(out_dir)?; + fs::create_dir_all(out_dir).unwrap(); let mut modules = vec![]; - if !headers.is_empty() { - let src_dir = &download_headers(target, download_dir)?; - let mut files = vec![]; - for &header in headers { - if !header.arch.is_empty() && !header.arch.contains(&target.arch) { - continue; - } - if !header.os.is_empty() && !header.os.contains(&target.os) { - continue; - } - if !header.env.is_empty() && !header.env.contains(&target.env) { - continue; - } + let mut first = true; + let mut src_dir = Utf8PathBuf::new(); + let mut files = vec![]; + for &header in headers { + if !header.arch.is_empty() && !header.arch.contains(&target.arch) { + continue; + } + if !header.os.is_empty() && !header.os.contains(&target.os) { + continue; + } + if !header.env.is_empty() && !header.env.contains(&target.env) { + continue; + } + if target.os == linux + && target.env == gnu + && target.arch == aarch64 + && target.target_pointer_width == "32" + && matches!(header.path, "sys/rseq.h") + { + // TODO: ilp32 fork is old + continue; + } + if first { + src_dir = download_headers(target, download_dir); + first = false; + } + let src_dir = &src_dir; - let functions = header.functions.join("|"); - let types = header.types.join("|"); - let vars = header.vars.join("|"); + let functions = header.functions.join("|"); + let types = header.types.join("|"); + let vars = header.vars.join("|"); - let out_file = format!( - "{}.rs", - Utf8PathBuf::from(header.path.replace(['/', '-', ':'], "_")) - .file_stem() - .unwrap() - ); - let out_path = out_dir.join(&out_file); + let out_file = format!( + "{}.rs", + Utf8PathBuf::from(header.path.replace(['/', '-', ':'], "_")) + .file_stem() + .unwrap() + ); + let out_path = out_dir.join(&out_file); - let target_flag = &*format!("--target={}", target.llvm_target); - let mut clang_args = vec![target_flag, "-nostdinc"]; - macro_rules! define { - ($name:ident) => {{ - clang_args.push(concat!("-D", stringify!($name))); - }}; - ($name:ident, $value:literal) => {{ - clang_args.push(concat!("-D", stringify!($name), "=", $value)); - }}; - } - macro_rules! include_header { - ($value:literal) => {{ - clang_args.push(concat!("-include", $value)); - }}; - } - let header_path; - let include; - match target.os { - linux | android => { - let linux_headers_dir = linux_headers_dir(target, src_dir); - if let Some(path) = header.path.strip_prefix("linux-headers:") { - header_path = linux_headers_dir.join("include").join(path); - include = vec![linux_headers_dir.join("include")]; - } else if target.os == android { - let bionic_dir = bionic_dir(src_dir).join("libc"); - header_path = bionic_dir.join("include").join(header.path); - include = vec![ - linux_headers_dir.join("include"), - bionic_dir.join("include"), - bionic_dir.join("kernel/uapi/linux"), - bionic_dir.join("kernel/uapi"), - bionic_dir.join("kernel/android/uapi"), - ]; - } else if target.env == gnu { - let glibc_dir = glibc_dir(src_dir); + let target_flag = &*format!("--target={}", target.llvm_target); + let mut clang_args = vec![target_flag, "-nostdinc"]; + macro_rules! define { + ($name:ident) => {{ + clang_args.push(concat!("-D", stringify!($name))); + }}; + ($name:ident, $value:literal) => {{ + clang_args.push(concat!("-D", stringify!($name), "=", $value)); + }}; + } + macro_rules! include_header { + ($value:literal) => {{ + clang_args.push(concat!("-include", $value)); + }}; + } + let header_path; + let include; + match target.os { + linux | android => { + let linux_headers_dir = linux_headers_dir(target, src_dir); + if let Some(path) = header.path.strip_prefix("linux-headers:") { + header_path = linux_headers_dir.join("include").join(path); + include = vec![linux_headers_dir.join("include")]; + } else if target.os == android { + let bionic_dir = bionic_dir(src_dir).join("libc"); + header_path = bionic_dir.join("include").join(header.path); + include = vec![ + bionic_dir.join("include"), + bionic_dir.join("kernel/uapi"), + bionic_dir.join("kernel/android/uapi"), + ]; + } else { + let headers_dir = libc_headers_dir(target, src_dir); + if target.env == gnu && !headers_dir.exists() { + let glibc_dir = glibc_dir(target, src_dir); header_path = glibc_dir.join("include").join(header.path); include = vec![ glibc_dir.join("include"), glibc_dir.join("sysdeps").join(glibc_arch(target)), glibc_dir, + linux_headers_dir.join("include"), ]; } else { let headers_dir = libc_headers_dir(target, src_dir); header_path = headers_dir.join("include").join(header.path); - include = vec![headers_dir.join("include")]; + include = vec![ + headers_dir.join("include"), + linux_headers_dir.join("include"), + ]; } } - _ if target.vendor.as_deref() == Some("apple") => { - header_path = src_dir.join("bsd").join(header.path); - include = vec![ - src_dir.join("bsd"), - src_dir.join("EXTERNAL_HEADERS"), - src_dir.join("osfmk"), - src_dir.parent().unwrap().join("Libc/include"), - src_dir.parent().unwrap().join("libpthread/include"), - ]; - // https://github.com/apple-oss-distributions/xnu/blob/5c2921b07a2480ab43ec66f5b9e41cb872bc554f/bsd/sys/cdefs.h#L512-L522 - define!(_POSIX_C_SOURCE, "200112L"); - include_header!("sys/_types/_u_char.h"); - include_header!("sys/_types/_u_short.h"); - include_header!("sys/_types/_u_int.h"); - } - freebsd | openbsd => { - header_path = src_dir.join("include").join(header.path); - include = vec![src_dir.join("include")]; - include_header!("sys/types.h"); - } - netbsd => { - header_path = src_dir.join("include").join(header.path); - include = vec![ - src_dir.join("include"), - src_dir.join("include/sys"), - src_dir.join("lib/libpthread"), - ]; - } - illumos => { - header_path = src_dir.join("usr/src/uts/common").join(header.path); - include = vec![ - src_dir.join("usr/src/uts/common"), - src_dir.join("usr/src/uts").join(illumos_arch(target)), - src_dir.join("usr/src/head"), - ]; - } - fuchsia => { - header_path = src_dir.join(header.path); - include = vec![ - src_dir.join("zircon/system/public"), - src_dir.join("zircon/kernel/lib/libc/include"), - ]; - define!(_KERNEL); + define!(_GNU_SOURCE); + } + _ if target.vendor.as_deref() == Some("apple") => { + header_path = src_dir.join("bsd").join(header.path); + include = vec![ + src_dir.join("bsd"), + src_dir.join("EXTERNAL_HEADERS"), + src_dir.join("osfmk"), + src_dir.parent().unwrap().join("Libc/include"), + src_dir.parent().unwrap().join("libpthread/include"), + ]; + // https://github.com/apple-oss-distributions/xnu/blob/8d741a5de7ff4191bf97d57b9f54c2f6d4a15585/bsd/sys/cdefs.h#L628-L638 + define!(_POSIX_C_SOURCE, "200112L"); + include_header!("sys/_types/_u_char.h"); + include_header!("sys/_types/_u_short.h"); + include_header!("sys/_types/_u_int.h"); + } + freebsd | openbsd => { + header_path = src_dir.join("include").join(header.path); + include = vec![src_dir.join("include")]; + include_header!("sys/types.h"); + } + netbsd => { + header_path = src_dir.join("include").join(header.path); + include = vec![ + src_dir.join("include"), + src_dir.join("include/sys"), + src_dir.join("lib/libpthread"), + ]; + match target.arch { + mips | mips32r6 | mips64 | mips64r6 => match target.target_endian { + little => define!(_BYTE_ORDER, "_LITTLE_ENDIAN"), + big => define!(_BYTE_ORDER, "_BIG_ENDIAN"), + }, + _ => {} } - _ => todo!("{target:?}"), } - for include in &include { - clang_args.push("-I"); - clang_args.push(include.as_str()); + illumos => { + header_path = src_dir.join("usr/src/uts/common").join(header.path); + include = vec![ + src_dir.join("usr/src/uts/common"), + src_dir.join("usr/src/uts").join(illumos_arch(target)), + src_dir.join("usr/src/head"), + ]; } + fuchsia => { + header_path = src_dir.join(header.path); + include = vec![ + src_dir.join("zircon/system/public"), + src_dir.join("zircon/kernel/lib/libc/include"), + ]; + define!(_KERNEL); + } + _ => todo!("{target:?}"), + } + for include in &include { + clang_args.push("-I"); + clang_args.push(include.as_str()); + } - let bindings = bindgen::builder() - .array_pointers_in_arguments(true) - .derive_debug(false) - .disable_header_comment() - .generate_comments(false) - .layout_tests(false) - .rust_target(bindgen::RustTarget::Stable_1_36) - .use_core() - .formatter(bindgen::Formatter::Prettyplease) - .header(header_path.as_str()) - .clang_args(&clang_args) - .allowlist_function(&functions) - .allowlist_type(&types) - .allowlist_var(&vars) - .raw_line(raw_line) - .generate() - .with_context(|| format!("failed to generate for {}", header.path))?; - bindings - .write_to_file(out_path) - .with_context(|| format!("failed to write_to_file for {}", header.path))?; + let bindings = bindgen::builder() + .array_pointers_in_arguments(true) + .derive_debug(false) + .disable_header_comment() + .generate_comments(false) + .layout_tests(false) + .rust_target(bindgen::RustTarget::Stable_1_36) + .use_core() + .formatter(bindgen::Formatter::Prettyplease) + .header(header_path.as_str()) + .clang_args(&clang_args) + .allowlist_function(&functions) + .allowlist_type(&types) + .allowlist_var(&vars) + .raw_line(raw_line) + .generate() + .unwrap_or_else(|e| panic!("failed to generate for {}: {}", header.path, e)); + bindings.write_to_file(out_path).unwrap_or_else(|e| { + panic!("failed to write_to_file for {}: {}", header.path, e) + }); - files.push((out_file, functions, types, vars)); - } - for (path, functions, types, vars) in &files { - let module_name = format_ident!("{}", Utf8Path::new(path).file_stem().unwrap()); - let mut uses = vec![]; - // Only export matched names because the module may contain type def. - let functions = Regex::new(&format!("^({functions})$"))?; - let types = Regex::new(&format!("^({types})$"))?; - let vars = Regex::new(&format!("^({vars})$"))?; - let f = syn::parse_file(&fs::read_to_string(out_dir.join(path))?)?; - for i in f.items { - match i { - syn::Item::ForeignMod(i) => { - for i in i.items { - match i { - syn::ForeignItem::Fn(i) - if matches!(i.vis, syn::Visibility::Public(..)) - && functions.is_match(&i.sig.ident.to_string()) => - { - uses.push(format_ident!("{}", i.sig.ident)); - } - _ => {} + files.push((out_file, functions, types, vars)); + } + for (path, functions, types, vars) in &files { + let module_name = format_ident!("{}", Utf8Path::new(path).file_stem().unwrap()); + let mut uses = vec![]; + // Only export matched names because the module may contain type def. + let functions = Regex::new(&format!("^({functions})$")).unwrap(); + let types = Regex::new(&format!("^({types})$")).unwrap(); + let vars = Regex::new(&format!("^({vars})$")).unwrap(); + let f = syn::parse_file(&fs::read_to_string(out_dir.join(path)).unwrap()).unwrap(); + for i in f.items { + match i { + syn::Item::ForeignMod(i) => { + for i in i.items { + match i { + syn::ForeignItem::Fn(i) + if matches!(i.vis, syn::Visibility::Public(..)) + && functions.is_match(&i.sig.ident.to_string()) => + { + uses.push(format_ident!("{}", i.sig.ident)); + } + syn::ForeignItem::Static(i) + if matches!(i.vis, syn::Visibility::Public(..)) + && vars.is_match(&i.ident.to_string()) => + { + uses.push(format_ident!("{}", i.ident)); } + _ => {} } } - syn::Item::Struct(i) - if matches!(i.vis, syn::Visibility::Public(..)) - && types.is_match(&i.ident.to_string()) => - { - uses.push(format_ident!("{}", i.ident)); - } - syn::Item::Type(i) - if matches!(i.vis, syn::Visibility::Public(..)) - && types.is_match(&i.ident.to_string()) => - { - uses.push(format_ident!("{}", i.ident)); - } - syn::Item::Const(i) - if matches!(i.vis, syn::Visibility::Public(..)) - && vars.is_match(&i.ident.to_string()) => - { - uses.push(format_ident!("{}", i.ident)); - } - _ => {} } + syn::Item::Struct(syn::ItemStruct { vis, ident, .. }) + | syn::Item::Type(syn::ItemType { vis, ident, .. }) + if matches!(vis, syn::Visibility::Public(..)) + && types.is_match(&ident.to_string()) => + { + uses.push(format_ident!("{ident}")); + } + syn::Item::Const(i) + if matches!(i.vis, syn::Visibility::Public(..)) + && vars.is_match(&i.ident.to_string()) => + { + uses.push(format_ident!("{}", i.ident)); + } + _ => {} } - let uses = uses.iter(); - modules.push(quote! { - mod #module_name; - #(pub use #module_name::#uses;)* - }); } + let uses = uses.iter(); + modules.push(quote! { + mod #module_name; + #(pub use #module_name::#uses;)* + }); } // e.g., clang -E -dM -x c /dev/null -target aarch64-unknown-linux-gnu | grep -F __CHAR_ let clang_defs = cmd!("clang", "-E", "-dM", "-x", "c", "/dev/null", "-target", &target.llvm_target) - .read()?; + .read() + .unwrap(); let c_char_type = if clang_defs.lines().any(|l| l == "#define __CHAR_UNSIGNED__ 1") { quote! { u8 } } else { @@ -696,7 +795,8 @@ pub(crate) fn gen() -> Result<()> { file::write(function_name!(), out_dir.join("mod.rs"), quote! { #(#modules)* pub type c_char = #c_char_type; - })?; + }) + .unwrap(); } } file::write(function_name!(), out_dir.join("mod.rs"), quote! { @@ -705,12 +805,13 @@ pub(crate) fn gen() -> Result<()> { non_camel_case_types, non_upper_case_globals, unreachable_pub, + clippy::cast_sign_loss, clippy::pub_underscore_fields, clippy::unnecessary_cast, )] #(#target_modules)* - })?; - Ok(()) + }) + .unwrap(); } // https://github.com/bminor/glibc @@ -721,14 +822,19 @@ const MUSL_REPO: &str = "bminor/musl"; const UCLIBC_REPO: &str = "wbx-github/uclibc-ng"; // https://github.com/aosp-mirror/platform_bionic const BIONIC_REPO: &str = "aosp-mirror/platform_bionic"; -fn download_headers(target: &TargetSpec, download_dir: &Utf8Path) -> Result { +fn download_headers(target: &TargetSpec, download_dir: &Utf8Path) -> Utf8PathBuf { + #[track_caller] fn clone( download_dir: &Utf8Path, repository: &str, + branch: Option<&str>, sparse_checkout: &[&str], - ) -> Result { + ) -> Utf8PathBuf { let name = repository.strip_suffix(".git").unwrap_or(repository); let name = name.replace("https://fuchsia.googlesource.com/", "fuchsia/"); + let name = name.replace("https://git.linaro.org/toolchain/", "linaro-toolchain/"); + let name = + name.replace("https://git.kernel.org/pub/scm/linux/kernel/git/arm64/", "linux-arm64/"); assert!(!name.contains("://"), "{}", name); let repository = if repository.contains("://") { repository.to_owned() @@ -737,37 +843,67 @@ fn download_headers(target: &TargetSpec, download_dir: &Utf8Path) -> Result Result<()> { - let patch_dir = Utf8Path::new("tools/codegen/patches"); + #[track_caller] + fn patch(target: &TargetSpec, src_dir: &Utf8Path) { + let patch_dir = workspace_root().join("tools/codegen/patches"); for path in [ patch_dir.join(format!("{}.diff", target.os)), patch_dir.join(format!("{}-{}.diff", target.os, target.env)), @@ -776,31 +912,46 @@ fn download_headers(target: &TargetSpec, download_dir: &Utf8Path) -> Result src_dir.parent().unwrap().parent().unwrap(), - _ => src_dir, + linux => { + if target.env == gnu { + if target.arch == aarch64 && target.target_pointer_width == "32" { + return; + } + glibc_dir(target, src_dir) + } else { + todo!("{target:?}") + } + } + android => bionic_dir(src_dir), + _ => src_dir.to_owned(), }; - cmd!("patch", "-p1").stdin_file(fs::File::open(path)?.into_parts().0).dir(dir).run()?; + cmd!("patch", "-p1") + .stdin_file(fs::File::open(path).unwrap().into_parts().0) + .dir(dir) + .run() + .unwrap(); } - Ok(()) } + let src_dir; + let mut patched = false; match target.os { linux | android => { - if target.os == android { - clone(download_dir, BIONIC_REPO, &["/libc/"])?; - } else if target.env == gnu { - clone(download_dir, GLIBC_REPO, &[])?; - } else if target.env == musl { - clone(download_dir, MUSL_REPO, &["/arch/", "/include/", "/tools/"])?; - } else if target.env == uclibc { - clone(download_dir, UCLIBC_REPO, &[])?; - } - src_dir = clone(download_dir, "torvalds/linux", &[ - "/arch/", - "/include/", - "/scripts/", - "/tools/", - ])?; + src_dir = if target.arch == aarch64 && target.target_pointer_width == "32" { + clone( + download_dir, + "https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git", + Some("staging/ilp32-5.1"), + &[], + ) + } else { + clone(download_dir, "torvalds/linux", None, &[ + "/arch/", + "/include/", + "/scripts/", + "/tools/", + ]) + }; let linux_arch = linux_arch(target); let linux_headers_dir = &linux_headers_dir(target, &src_dir); if !linux_headers_dir.exists() { @@ -813,33 +964,138 @@ fn download_headers(target: &TargetSpec, download_dir: &Utf8Path) -> Result "asm-arm", + aarch64 => "asm-arm64", + riscv32 | riscv64 => "asm-riscv", + x86 | x86_64 => "asm-x86", + _ => todo!("{target:?}"), + }; + symlink( + bionic_dir.join("libc/kernel/uapi").join(asm_arch).join("asm"), + bionic_dir.join("libc/kernel/uapi").join("asm"), + ) + .unwrap(); fs::write( - bionic_dir(&src_dir).join("libc/include/stdbool.h"), - "#define bool _Bool", - )?; + bionic_dir.join("libc/include/stddef.h"), + "\ + typedef long unsigned int size_t;\n\ + typedef long ptrdiff_t;\n\ + ", + ) + .unwrap(); + fs::write(bionic_dir.join("libc/include/stdbool.h"), "#define bool _Bool\n") + .unwrap(); + fs::write(bionic_dir.join("libc/include/float.h"), "").unwrap(); } else if target.env == gnu { - let glibc_arch = glibc_arch(target); - let glibc_src_dir = &src_dir.join("../..").join(GLIBC_REPO); - // TODO: use https://github.com/bminor/glibc/blob/HEAD/Makefile? - let sysdeps_dir = &glibc_src_dir.join("sysdeps"); - for e in fs::read_dir(sysdeps_dir.join("generic"))?.filter_map(Result::ok) { - let path = &e.path(); - if path.extension() != Some(OsStr::new("h")) { - continue; + if target.arch == aarch64 && target.target_pointer_width == "32" { + clone( + download_dir, + "https://git.linaro.org/toolchain/glibc.git", + Some("arm/ilp32"), + &[], + ); + } else { + clone(download_dir, GLIBC_REPO, None, &[]); + } + let glibc_src_dir = &glibc_dir(target, &src_dir); + let headers_dir = &libc_headers_dir(target, &src_dir); + if !headers_dir.exists() { + let mut cc = format!("{}-gcc", target.llvm_target.replace("-unknown", "")); + let mut cflags = String::new(); + if cmd!(&cc, "--version").stdout_capture().stderr_capture().run().is_err() { + cc = format!("{}-gcc", target.llvm_target); + if cmd!(&cc, "--version").stdout_capture().stderr_capture().run().is_err() { + // select alternative cc + match target.arch { + aarch64 => { + cc = "aarch64-linux-gnu-gcc".to_owned(); + if target.target_pointer_width == "32" { + cflags += " -mabi=ilp32"; + } + if target.target_endian == big { + cflags += " -mbig-endian"; + } + } + arm if !target.llvm_target.ends_with("hf") => { + cc = "arm-linux-gnueabi-gcc".to_owned(); + if target.target_endian == big { + cflags += " -mbig-endian"; + } + } + x86 => { + cc = "i686-linux-gnu-gcc".to_owned(); + if target.llvm_target.starts_with("i586") { + cflags += " -march=pentium -m32"; + } + } + powerpc64 if target.target_endian == big => { + cc = "powerpc64le-linux-gnu-gcc".to_owned(); + cflags += " -mbig-endian"; + } + riscv32 => { + cc = "riscv64-linux-gnu-gcc".to_owned(); + cflags += " -march=rv32gc -mabi=ilp32d"; + } + sparc => { + cc = "sparc64-linux-gnu-gcc".to_owned(); + cflags += " -m32 -mv8plus"; + } + _ => panic!( + "{}-gcc or {}-gcc required", + target.llvm_target.replace("-unknown", ""), + target.llvm_target + ), + } + } } - let file = path.file_name().unwrap().to_str().unwrap(); - if !sysdeps_dir.join(glibc_arch).join(file).exists() { - symlink(path, sysdeps_dir.join(glibc_arch).join(file))?; + // https://github.com/bminor/glibc/blob/HEAD/INSTALL + let build_dir = &glibc_src_dir.parent().unwrap().join("glibc-build"); + if build_dir.exists() { + fs::remove_dir_all(build_dir).unwrap(); } + fs::create_dir_all(build_dir).unwrap(); + cmd!( + "bash", + "../glibc/configure", + format!("--prefix={headers_dir}"), + format!("--with-headers={linux_headers_dir}/include"), + format!("--build={}", target.llvm_target), + format!("--host={}", target.llvm_target), + ) + .dir(build_dir) + .env("CC", format!("{cc}{cflags}")) + .run() + .unwrap(); + cmd!("make", "install-headers").dir(build_dir).stdout_capture().run().unwrap(); + fs::write(headers_dir.join("include/gnu/stubs.h"), "").unwrap(); } - fs::write(glibc_src_dir.join("include/stddef.h"), "")?; - patch(target, &src_dir)?; + fs::write( + headers_dir.join("include/stddef.h"), + "\ + #define NULL ((void*)0)\n\ + typedef long unsigned int size_t;\n\ + typedef long signed int ptrdiff_t;\n\ + ", + ) + .unwrap(); + patched = true; } else if target.env == musl { + let musl_src_dir = &if target.arch == hexagon { + // https://github.com/quic/musl/tree/hexagon + clone(download_dir, "quic/musl", Some("hexagon"), &[]); + src_dir.join("../..").join("quic/musl") + } else { + clone(download_dir, MUSL_REPO, None, &["/arch/", "/include/", "/tools/"]); + src_dir.join("../..").join(MUSL_REPO) + }; let musl_arch = musl_arch(target); - let musl_src_dir = &src_dir.join("../..").join(MUSL_REPO); let headers_dir = &libc_headers_dir(target, &src_dir); if !headers_dir.exists() { // https://github.com/bminor/musl/blob/HEAD/Makefile @@ -852,136 +1108,238 @@ fn download_headers(target: &TargetSpec, download_dir: &Utf8Path) -> Result ("arm-linux-gnueabi-gcc".to_owned(), ""), + _ => ( + format!( + "{}-gcc", + target.llvm_target.replace("-unknown", "").replace("uclibc", "gnu") + ), + "", + ), + }; // https://github.com/wbx-github/uclibc-ng/blob/HEAD/Makefile.in - cmd!("make", "allnoconfig", format!("ARCH={uclibc_arch}")) - .dir(uclibc_src_dir) - .stdout_capture() - .run()?; + cmd!( + "make", + "allnoconfig", + format!("ARCH={uclibc_arch}"), + "UCLIBC_HAS_REALTIME=y", + "UCLIBC_LINUX_SPECIFIC=y", + ) + .dir(uclibc_src_dir) + .stdout_capture() + .run() + .unwrap(); cmd!( "make", "install_headers", format!("ARCH={uclibc_arch}"), + "UCLIBC_HAS_REALTIME=y", + "UCLIBC_LINUX_SPECIFIC=y", "HAVE_SHARED=y", format!("DESTDIR={headers_dir}"), format!("PREFIX={headers_dir}"), "DEVEL_PREFIX=/", format!("KERNEL_HEADERS={linux_headers_dir}/include"), + format!("CC={cc}{cflags}"), ) .dir(uclibc_src_dir) .stdout_capture() - .run()?; + .run() + .unwrap(); } - fs::write(headers_dir.join("include/stddef.h"), "")?; + fs::write( + headers_dir.join("include/stddef.h"), + "\ + typedef long unsigned int size_t;\n\ + ", + ) + .unwrap(); + patched = true; } } _ if target.vendor.as_deref() == Some("apple") => { - clone(download_dir, "apple-oss-distributions/Libc", &["/include/"])?; - clone(download_dir, "apple-oss-distributions/libpthread", &["/include/"])?; - src_dir = clone(download_dir, "apple-oss-distributions/xnu", &[ + clone(download_dir, "apple-oss-distributions/Libc", None, &["/include/"]); + clone(download_dir, "apple-oss-distributions/libpthread", None, &["/include/"]); + src_dir = clone(download_dir, "apple-oss-distributions/xnu", None, &[ "/bsd/", "/EXTERNAL_HEADERS/", "/osfmk/", - ])?; - // TODO: use https://github.com/apple-oss-distributions/xnu/blob/5c2921b07a2480ab43ec66f5b9e41cb872bc554f/Makefile? - // https://github.com/apple-oss-distributions/xnu/blob/5c2921b07a2480ab43ec66f5b9e41cb872bc554f/bsd/sys/make_symbol_aliasing.sh - fs::write(src_dir.join("bsd/sys/_symbol_aliasing.h"), "")?; - // https://github.com/apple-oss-distributions/xnu/blob/5c2921b07a2480ab43ec66f5b9e41cb872bc554f/bsd/sys/make_posix_availability.sh + ]); + // TODO: use https://github.com/apple-oss-distributions/xnu/blob/HEAD/Makefile? + // https://github.com/apple-oss-distributions/xnu/blob/HEAD/bsd/sys/make_symbol_aliasing.sh + fs::write(src_dir.join("bsd/sys/_symbol_aliasing.h"), "").unwrap(); + // https://github.com/apple-oss-distributions/xnu/blob/HEAD/bsd/sys/make_posix_availability.sh cmd!("bash", "bsd/sys/make_posix_availability.sh", "bsd/sys/_posix_availability.h") .dir(&src_dir) .stdout_capture() - .run()?; + .run() + .unwrap(); } freebsd => { - src_dir = clone(download_dir, "freebsd/freebsd-src", &["/include/", "/sys/"])?; + src_dir = clone(download_dir, "freebsd/freebsd-src", None, &["/include/", "/sys/"]); // TODO: use https://github.com/freebsd/freebsd-src/blob/HEAD/Makefile? - let arch = freebsd_arch(target); for path in ["sys"] { - symlink(src_dir.join("sys").join(path), src_dir.join("include").join(path))?; + symlink(src_dir.join("sys").join(path), src_dir.join("include").join(path)) + .unwrap(); } + // https://github.com/freebsd/freebsd-src/tree/HEAD/sys + let arches = match target.arch { + x86_64 => &["amd64", "x86"][..], + arm => &["arm"], + aarch64 => &["arm64"], + x86 => &["i386", "x86"], + powerpc | powerpc64 => &["powerpc"], + riscv64 => &["riscv"], + _ => todo!("{target:?}"), + }; symlink( - src_dir.join("sys").join(arch).join("include"), + src_dir.join("sys").join(arches[0]).join("include"), src_dir.join("include/machine"), - )?; + ) + .unwrap(); + for &arch in &arches[1..] { + symlink( + src_dir.join("sys").join(arch).join("include"), + src_dir.join("include").join(arch), + ) + .unwrap(); + } } netbsd => { - src_dir = clone(download_dir, "NetBSD/src", &[])?; - let arch = netbsd_arch(target); + src_dir = clone(download_dir, "NetBSD/src", None, &[]); for path in ["sys", "uvm"] { - symlink(src_dir.join("sys").join(path), src_dir.join("include").join(path))?; + symlink(src_dir.join("sys").join(path), src_dir.join("include").join(path)) + .unwrap(); } - for path in [arch, "machine"] { + // https://github.com/NetBSD/src/tree/HEAD/sys/arch + let arches = match target.arch { + aarch64 => &["aarch64", "arm"][..], + x86_64 => &["amd64", "x86"], + arm => &["arm"], + x86 => &["i386", "x86"], + m68k => &["m68k"], + mips | mips32r6 | mips64 | mips64r6 => &["mips"], + powerpc | powerpc64 => &["powerpc"], + riscv32 | riscv64 => &["riscv"], + sparc => &["sparc"], + sparc64 => &["sparc64", "sparc"], + _ => todo!("{target:?}"), + }; + for &arch in arches { symlink( src_dir.join("sys/arch").join(arch).join("include"), - src_dir.join("include").join(path), - )?; + src_dir.join("include").join(arch), + ) + .unwrap(); } - let link = match target.arch { - aarch64 => Some(("arm", src_dir.join("include").join("arm"))), - _ => None, - }; - if let Some((arch, link)) = link { - symlink(src_dir.join("sys/arch").join(arch).join("include"), link)?; + symlink(src_dir.join("include").join(arches[0]), src_dir.join("include/machine")) + .unwrap(); + match target.arch { + mips | mips32r6 | mips64 | mips64r6 => { + // TODO + fs::copy( + src_dir.join("sys/arch/evbmips/include/param.h"), + src_dir.join("sys/arch/mips/include/param.h"), + ) + .unwrap(); + } + _ => {} } } openbsd => { - src_dir = clone(download_dir, "openbsd/src", &["/include/", "/sys/"])?; + src_dir = clone(download_dir, "openbsd/src", None, &["/include/", "/sys/"]); // TODO: use https://github.com/openbsd/src/blob/HEAD/Makefile? - let arch = openbsd_arch(target); for path in ["sys", "uvm"] { - symlink(src_dir.join("sys").join(path), src_dir.join("include").join(path))?; + symlink(src_dir.join("sys").join(path), src_dir.join("include").join(path)) + .unwrap(); } - symlink( - src_dir.join("sys/arch").join(arch).join("include"), - src_dir.join("include/machine"), - )?; + // https://github.com/openbsd/src/tree/HEAD/sys/arch + let arches = match target.arch { + x86_64 => &["amd64"][..], + arm if target.llvm_target.starts_with("armv7") => &["armv7", "arm"], + arm => &["arm"], + aarch64 => &["arm64"], + x86 => &["i386"], + mips64 | mips64r6 => &["mips64"], // loongson or octeon + powerpc => &["macppc", "powerpc"], + powerpc64 => &["powerpc64"], + riscv64 => &["riscv64"], + sparc64 => &["sparc64"], + _ => todo!("{target:?}"), + }; + for &arch in arches { + symlink( + src_dir.join("sys/arch").join(arch).join("include"), + src_dir.join("include").join(arch), + ) + .unwrap(); + } + symlink(src_dir.join("include").join(arches[0]), src_dir.join("include/machine")) + .unwrap(); } illumos => { if target.arch == aarch64 { // TODO: use illumos/illumos-gate once merged to upstream - src_dir = clone(download_dir, "richlowe/illumos-gate", &["/usr/"])?; + src_dir = clone(download_dir, "richlowe/illumos-gate", None, &["/usr/"]); } else { todo!("{target:?}") } } fuchsia => { - src_dir = clone(download_dir, "https://fuchsia.googlesource.com/fuchsia", &[])?; - fs::write(src_dir.join("zircon/kernel/lib/libc/include/stdbool.h"), "")?; + src_dir = clone(download_dir, "https://fuchsia.googlesource.com/fuchsia", None, &[]); + fs::write(src_dir.join("zircon/kernel/lib/libc/include/stdbool.h"), "").unwrap(); fs::write( src_dir.join("zircon/kernel/lib/libc/include/stddef.h"), "#define size_t unsigned long", - )?; + ) + .unwrap(); } _ => todo!("{target:?}"), } - Ok(src_dir) + if !patched { + patch(target, &src_dir); + } + src_dir } fn linux_headers_dir(target: &TargetSpec, src_dir: &Utf8Path) -> Utf8PathBuf { - src_dir.join("../..").join("headers").join("linux").join(linux_arch(target)) + if target.arch == aarch64 && target.target_pointer_width == "32" { + src_dir.join("../..").join("headers").join("linux").join("arm64-ilp32") + } else { + src_dir.join("../..").join("headers").join("linux").join(linux_arch(target)) + } } -fn glibc_dir(src_dir: &Utf8Path) -> Utf8PathBuf { - src_dir.join("../..").join(GLIBC_REPO) +fn glibc_dir(target: &TargetSpec, src_dir: &Utf8Path) -> Utf8PathBuf { + if target.arch == aarch64 && target.target_pointer_width == "32" { + src_dir.join("../..").join("linaro-toolchain/glibc") + } else { + src_dir.join("../..").join(GLIBC_REPO) + } } fn libc_headers_dir(target: &TargetSpec, src_dir: &Utf8Path) -> Utf8PathBuf { assert_eq!(target.os, linux); - let (lib, arch) = match target.env { - musl => ("musl", musl_arch(target)), - uclibc => ("uclibc", uclibc_arch(target)), + let dir = src_dir.join("../..").join("headers"); + match target.env { + gnu => dir.join("glibc").join(target.llvm_target.replace("-unknown", "")), + musl => dir.join("musl").join(target.llvm_target.replace("-unknown", "")), + uclibc => dir.join("uclibc").join(target.llvm_target.replace("-unknown", "")), _ => todo!("{target:?}"), - }; - src_dir.join("../..").join("headers").join(lib).join(arch) + } } fn bionic_dir(src_dir: &Utf8Path) -> Utf8PathBuf { src_dir.join("../..").join(BIONIC_REPO) @@ -1010,17 +1368,33 @@ fn glibc_arch(target: &TargetSpec) -> &'static str { // https://github.com/bminor/glibc/tree/HEAD/sysdeps match target.arch { aarch64 => "aarch64", + arm => "arm", + csky => "csky", + loongarch64 => "loongarch", + m68k => "m68k/m680x0", + mips | mips32r6 => "mips/mips32", + mips64 | mips64r6 if target.target_pointer_width == "32" => "mips/mips64/n32", + mips64 | mips64r6 if target.target_pointer_width == "64" => "mips/mips64/n64", + powerpc => "powerpc/powerpc32", powerpc64 => "powerpc/powerpc64", riscv32 | riscv64 => "riscv", + s390x => "s390/s390-64", + sparc => "sparc/sparc32", + sparc64 => "sparc/sparc64", + x86 => "x86", + x86_64 if target.target_pointer_width == "32" => "x86_64/x32", + x86_64 if target.target_pointer_width == "64" => "x86_64/64", _ => todo!("{target:?}"), } } fn musl_arch(target: &TargetSpec) -> &'static str { // https://github.com/bminor/musl/tree/HEAD/arch + // https://github.com/quic/musl/tree/bcain/to-upstream match target.arch { aarch64 => "aarch64", arm => "arm", x86 => "i386", + hexagon => "hexagon", loongarch64 => "loongarch64", m68k => "m68k", mips | mips32r6 => "mips", @@ -1041,40 +1415,17 @@ fn uclibc_arch(target: &TargetSpec) -> &'static str { match target.arch { aarch64 => "aarch64", arm => "arm", - riscv32 => "riscv32", - riscv64 => "riscv64", - _ => todo!("{target:?}"), - } -} -fn freebsd_arch(target: &TargetSpec) -> &'static str { - // https://github.com/freebsd/freebsd-src/tree/HEAD/sys - match target.arch { - x86_64 => "amd64", - arm => "arm", - aarch64 => "arm64", - x86 => "i386", - powerpc | powerpc64 => "powerpc", - riscv64 => "riscv", - _ => todo!("{target:?}"), - } -} -fn netbsd_arch(target: &TargetSpec) -> &'static str { - // https://github.com/NetBSD/src/tree/HEAD/sys/arch - match target.arch { - aarch64 => "aarch64", - riscv32 | riscv64 => "riscv", - _ => todo!("{target:?}"), - } -} -fn openbsd_arch(target: &TargetSpec) -> &'static str { - // https://github.com/openbsd/src/tree/HEAD/sys/arch - match target.arch { - x86_64 => "amd64", - aarch64 => "arm64", + csky => "csky", x86 => "i386", - powerpc64 => "powerpc64", + m68k => "m68k", + mips | mips32r6 => "mips", + powerpc => "powerpc", + riscv32 => "riscv32", riscv64 => "riscv64", + sparc => "sparc", sparc64 => "sparc64", + x86_64 => "x86_64", + xtensa => "xtensa", _ => todo!("{target:?}"), } } @@ -1087,8 +1438,9 @@ fn illumos_arch(target: &TargetSpec) -> &'static str { } } -fn target_spec_json(target: &str) -> Result { +#[track_caller] +fn target_spec_json(target: &str) -> TargetSpec { let spec_path = workspace_root().join("target-specs").join(target).with_extension("json"); let target = if spec_path.exists() { spec_path.as_str() } else { target }; - Ok(target_spec_json::target_spec_json(Command::new("rustc"), target)?) + target_spec_json::target_spec_json(Command::new("rustc"), target).unwrap() } diff --git a/tools/codegen/src/file.rs b/tools/codegen/src/file.rs index c375f52d..acdf3374 100644 --- a/tools/codegen/src/file.rs +++ b/tools/codegen/src/file.rs @@ -1,8 +1,7 @@ // SPDX-License-Identifier: Apache-2.0 OR MIT -use std::{path::Path, sync::LazyLock}; +use std::{io, path::Path, sync::LazyLock}; -use anyhow::{format_err, Result}; use camino::Utf8PathBuf; use fs_err as fs; use proc_macro2::TokenStream; @@ -49,17 +48,19 @@ pub(crate) fn write( function_name: &str, path: impl AsRef, contents: TokenStream, -) -> Result<()> { - write_raw(function_name, path.as_ref(), format_tokens(contents)?) +) -> io::Result<()> { + write_raw(function_name, path.as_ref(), format_tokens(contents)) } -fn format_tokens(contents: TokenStream) -> Result> { +#[track_caller] +fn format_tokens(contents: TokenStream) -> Vec { let mut out = prettyplease::unparse( - &syn::parse2(contents.clone()).map_err(|e| format_err!("{e} in:\n---\n{contents}\n---"))?, + &syn::parse2(contents.clone()) + .unwrap_or_else(|e| panic!("{} in:\n---\n{}\n---", e, contents)), ) .into_bytes(); format_macros(&mut out); - Ok(out) + out } // Roughly format the code inside macro calls. @@ -125,7 +126,7 @@ pub(crate) fn write_raw( function_name: &str, path: &Path, contents: impl AsRef<[u8]>, -) -> Result<()> { +) -> io::Result<()> { static LINGUIST_GENERATED: LazyLock> = LazyLock::new(|| { let gitattributes = fs::read_to_string(workspace_root().join(".gitattributes")).unwrap(); let mut linguist_generated = vec![]; diff --git a/tools/codegen/src/main.rs b/tools/codegen/src/main.rs index c5e3dd07..00694b92 100644 --- a/tools/codegen/src/main.rs +++ b/tools/codegen/src/main.rs @@ -1,6 +1,8 @@ // SPDX-License-Identifier: Apache-2.0 OR MIT #![allow( + clippy::assigning_clones, + clippy::collapsible_else_if, clippy::enum_glob_use, clippy::needless_pass_by_value, clippy::unnecessary_wraps, @@ -14,10 +16,7 @@ mod file; #[cfg(unix)] mod ffi; -use anyhow::Result; - -fn main() -> Result<()> { +fn main() { #[cfg(unix)] - ffi::gen()?; - Ok(()) + ffi::gen(); }